3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recursiveClosure = function(...$args) use(&$recursiveClosure) { array_walk($args, function($arg) use($recursiveClosure) { if (is_array($arg)) { call_user_func_array($recursiveClosure, $arg); }else{ print_r($arg); } }); }; $recursiveClosure([1,2,3],4,5,[6,7]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JqVmS
function name:  (null)
number of ops:  10
compiled vars:  !0 = $recursiveClosure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJqVmS%3A2%240'
          1        BIND_LEXICAL                                             ~1, !0
          2        ASSIGN                                                   !0, ~1
   11     3        INIT_DYNAMIC_CALL                                        !0
          4        SEND_VAL_EX                                              <array>
          5        SEND_VAL_EX                                              4
          6        SEND_VAL_EX                                              5
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FJqVmS%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JqVmS
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $args, !1 = $recursiveClosure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_VARIADIC                                    !0      
          1        BIND_STATIC                                              !1
    3     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJqVmS%3A3%241'
          5        BIND_LEXICAL                                             ~2, !1
    9     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   10     8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FJqVmS%3A2%240

Function %00%7Bclosure%7D%2Fin%2FJqVmS%3A3%241:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JqVmS
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $arg, !1 = $recursiveClosure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    4     2        TYPE_CHECK                                  128          !0
          3      > JMPZ                                                     ~2, ->9
    5     4    >   INIT_USER_CALL                                0          'call_user_func_array', !1
          5        SEND_ARRAY                                               !0
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      0          
          8      > JMP                                                      ->12
    7     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    9    12    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FJqVmS%3A3%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.63 ms | 1400 KiB | 17 Q