3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limiter = 20; $func = function() use (&$limiter, &$func) { $limiter--; if (!$limiter) { print "<pre>"; debug_print_backtrace(); throw new Exception("test error"); } if ($limiter <= 0) return; $func(); }; $func();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VhoFu
function name:  (null)
number of ops:  8
compiled vars:  !0 = $limiter, !1 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 20
    3     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVhoFu%3A3%240'
          2        BIND_LEXICAL                                             ~3, !0
          3        BIND_LEXICAL                                             ~3, !1
          4        ASSIGN                                                   !1, ~3
   18     5        INIT_DYNAMIC_CALL                                        !1
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FVhoFu%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VhoFu
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $limiter, !1 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
    5     2        PRE_DEC                                                  !0
    6     3        BOOL_NOT                                         ~3      !0
          4      > JMPZ                                                     ~3, ->12
    8     5    >   ECHO                                                     '%3Cpre%3E'
    9     6        INIT_FCALL                                               'debug_print_backtrace'
          7        DO_ICALL                                                 
   10     8        NEW                                              $5      'Exception'
          9        SEND_VAL_EX                                              'test+error'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $5
   13    12    >   IS_SMALLER_OR_EQUAL                                      !0, 0
         13      > JMPZ                                                     ~7, ->15
   14    14    > > RETURN                                                   null
   15    15    >   INIT_DYNAMIC_CALL                                        !1
         16        DO_FCALL                                      0          
   16    17      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FVhoFu%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.35 ms | 1401 KiB | 15 Q