3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $sweet = array('a' => 'apple', 'b' => 'banana'); $fruits = array('sweet' => $sweet, 'sour' => 'lemon'); function test_print($item) { echo "holds $item\n"; } array_walk_recursive($fruits, 'test_print'); print_r(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KTUkM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $sweet, !1 = $fruits
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        INIT_ARRAY                                       ~4      !0, 'sweet'
          5        ADD_ARRAY_ELEMENT                                ~4      'lemon', 'sour'
          6        ASSIGN                                                   !1, ~4
   11     7        INIT_FCALL                                               'array_walk_recursive'
          8        SEND_REF                                                 !1
          9        SEND_VAL                                                 'test_print'
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'print_r'
         12        INIT_FCALL                                               'error_get_last'
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function test_print:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KTUkM
function name:  test_print
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ROPE_INIT                                     3  ~2      'holds+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        ECHO                                                     ~1
    9     5      > RETURN                                                   null

End of function test_print

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.41 ms | 1395 KiB | 21 Q