3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $test = array(1 => 'foo', '1' => 'bar'); var_dump($test); foreach ($test as $key => $value) { var_dump($key); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/q0KKt
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7      > FE_RESET_R                                       $6      !0, ->14
          8    > > FE_FETCH_R                                       ~7      $6, !1, ->14
          9    >   ASSIGN                                                   !2, ~7
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    5    13      > JMP                                                      ->8
         14    >   FE_FREE                                                  $6
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.41 ms | 1395 KiB | 17 Q