3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2F8N0af%3A2%240:
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/8N0af
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $arg, !1 = $recursiveClosure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    3     2        TYPE_CHECK                                  128          !0
          3      > JMPZ                                                     ~2, ->9
    4     4    >   INIT_FCALL                                               'array_walk'
          5        SEND_REF                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > JMP                                                      ->12
    6     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12    > > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.14 ms | 1395 KiB | 17 Q