3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_exception_handler(function () { $result = debug_backtrace(); var_dump($result); } ); $closure = function() {print 'Hello world'; throw new Exception();};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/18t8E
function name:  (null)
number of ops:  7
compiled vars:  !0 = $closure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F18t8E%3A3%240'
    8     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   11     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F18t8E%3A11%241'
          5        ASSIGN                                                   !0, ~3
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F18t8E%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/18t8E
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    6     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2F18t8E%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/18t8E
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Hello+world'
          1        NEW                                              $0      'Exception'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $0
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F18t8E%3A11%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1395 KiB | 19 Q