3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array(0)); array_walk( $a, function (&$e) { array_filter(array(), function() use ($e) {}); $e[] = 1; } ); print_r($a[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZ2F3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_walk'
    6     2        SEND_REF                                                 !0
    7     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZZ2F3%3A7%240'
   10     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   13     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~4      !0, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FZZ2F3%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZ2F3
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAL                                                 <array>
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZZ2F3%3A8%241'
          4        BIND_LEXICAL                                             ~1, !0
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
    9     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  1
   10     9      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FZZ2F3%3A7%240

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

End of function %00%7Bclosure%7D%2Fin%2FZZ2F3%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.59 ms | 1396 KiB | 19 Q