3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = array('something1', something2); $array_2 = array('something3', something4); $array_3 = array(); $array_4 = array('something1', something2); $list = array($array_1,$array_2,$array_3,$array_4); array_walk($list,function(&$value, $key){ });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X7BlG
function name:  (null)
number of ops:  24
compiled vars:  !0 = $array_1, !1 = $array_2, !2 = $array_3, !3 = $array_4, !4 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~5      'something1'
          1        FETCH_CONSTANT                                   ~6      'something2'
          2        ADD_ARRAY_ELEMENT                                ~5      ~6
          3        ASSIGN                                                   !0, ~5
    3     4        INIT_ARRAY                                       ~8      'something3'
          5        FETCH_CONSTANT                                   ~9      'something4'
          6        ADD_ARRAY_ELEMENT                                ~8      ~9
          7        ASSIGN                                                   !1, ~8
    4     8        ASSIGN                                                   !2, <array>
    5     9        INIT_ARRAY                                       ~12     'something1'
         10        FETCH_CONSTANT                                   ~13     'something2'
         11        ADD_ARRAY_ELEMENT                                ~12     ~13
         12        ASSIGN                                                   !3, ~12
    7    13        INIT_ARRAY                                       ~15     !0
         14        ADD_ARRAY_ELEMENT                                ~15     !1
         15        ADD_ARRAY_ELEMENT                                ~15     !2
         16        ADD_ARRAY_ELEMENT                                ~15     !3
         17        ASSIGN                                                   !4, ~15
    8    18        INIT_FCALL                                               'array_walk'
         19        SEND_REF                                                 !4
         20        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FX7BlG%3A8%240'
   10    21        SEND_VAL                                                 ~17
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.63 ms | 1396 KiB | 15 Q