3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(10, 20, 30, array("lorem", "ipsum", "dolor", array(42, 37), "sit"), 40, 50); array_unshift($data, -10); $data[] = 60; unset($data[3][1]); function p($v) { echo $v; } array_walk_recursive($data, 'p');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2tFZb
function name:  (null)
number of ops:  14
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_unshift'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 -10
          4        DO_ICALL                                                 
    4     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  60
    5     7        FETCH_DIM_UNSET                                  $4      !0, 3
          8        UNSET_DIM                                                $4, 1
    9     9        INIT_FCALL                                               'array_walk_recursive'
         10        SEND_REF                                                 !0
         11        SEND_VAL                                                 'p'
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2tFZb
function name:  p
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ECHO                                                     !0
    8     2      > RETURN                                                   null

End of function p

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.35 ms | 1395 KiB | 17 Q