3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = [ 'a' => 'a', 'b' => 'b', ]; array_walk($var, function ($value) { }); var_dump(key($var)); foreach ($var as $value) { } var_dump(key($var));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/nJF2k
function name:  (null)
number of ops:  23
compiled vars:  !0 = $var, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FnJF2k%3A8%240'
    9     4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'key'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   14    12      > FE_RESET_R                                       $7      !0, ->15
         13    > > FE_FETCH_R                                               $7, !1, ->15
         14    > > JMP                                                      ->13
         15    >   FE_FREE                                                  $7
   17    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'key'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FnJF2k%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJF2k
function name:  {closure}
number of ops:  2
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FnJF2k%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.03 ms | 941 KiB | 20 Q