3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = function($b) use (&$a) { if ($b == 0) { return; } else { print $b; $a(--$b); } }; $a(10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GsXYf
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        BIND_LEXICAL                                                 ~1, !0
          2        ASSIGN                                                       !0, ~1
   13     3        INIT_DYNAMIC_CALL                                            !0
          4        SEND_VAL_EX                                                  10
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GsXYf
function name:  {closure:/in/GsXYf:3}
number of ops:  12
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
    4     2        IS_EQUAL                                                     !0, 0
          3      > JMPZ                                                         ~2, ->6
    5     4    > > RETURN                                                       null
    4     5*       JMP                                                          ->11
    8     6    >   ECHO                                                         !0
    9     7        INIT_DYNAMIC_CALL                                            !1
          8        PRE_DEC                                              ~3      !0
          9        SEND_VAL_EX                                                  ~3
         10        DO_FCALL                                          0          
   11    11      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.78 ms | 2979 KiB | 13 Q