<?php
$a = [ 2.7, 4.9 ];
foreach ( $a as $key => $value ) {
    if ( $value < 3 ) {
        echo $key;
    } else {
        if ( $key > 0 ) {
            echo $value;
        }
    }
}
line     #* E I O op                           fetch          ext  return  operands
   2     0  E >   ASSIGN                                                   !0, <array>
   3     1      > FE_RESET_R                                       $4      !0, ->12
         2    > > FE_FETCH_R                                       ~5      $4, !1, ->12
         3    >   ASSIGN                                                   !2, ~5
   4     4        IS_SMALLER                                       ~7      !1, 3
         5      > JMPZ                                                     ~7, ->8
   5     6    >   ECHO                                                     !2
         7      > JMP                                                      ->11
   7     8    >   IS_SMALLER                                       ~8      0, !2
         9      > JMPZ                                                     ~8, ->11
   8    10    >   ECHO                                                     !1
        11    > > JMP                                                      ->2
        12    >   FE_FREE                                                  $4
        13      > RETURN                                                   1