3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('display_errors', 1); error_reporting(~0); $list = array( array( "id" => 0 ), array( "id" => 20 ) ); foreach($list as $k => $row){ // echo $row["id"]; // This line alone works if($row["id"] >= 10){ // This should show echo $row["id"]; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/s5LkO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $list, !1 = $row, !2 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'display_errors'
          2        SEND_VAL                                                     1
          3        DO_ICALL                                                     
    3     4        INIT_FCALL                                                   'error_reporting'
          5        SEND_VAL                                                     -1
          6        DO_ICALL                                                     
    4     7        ASSIGN                                                       !0, <array>
   13     8      > FE_RESET_R                                           $6      !0, ->17
          9    > > FE_FETCH_R                                           ~7      $6, !1, ->17
         10    >   ASSIGN                                                       !2, ~7
   15    11        FETCH_DIM_R                                          ~9      !1, 'id'
         12        IS_SMALLER_OR_EQUAL                                          10, ~9
         13      > JMPZ                                                         ~10, ->16
   17    14    >   FETCH_DIM_R                                          ~11     !1, 'id'
         15        ECHO                                                         ~11
   13    16    > > JMP                                                          ->9
         17    >   FE_FREE                                                      $6
   20    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
137.64 ms | 1482 KiB | 15 Q