3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_exception_handler('jim'); echo "test"; function jim($ex) { var_dump($ex); } throw new Exception("bob");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/tdcaE
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        SEND_VAL                                                 'jim'
          2        DO_ICALL                                                 
    4     3        ECHO                                                     'test'
   10     4        NEW                                              $1      'Exception'
          5        SEND_VAL_EX                                              'bob'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $1
          8*     > RETURN                                                   1

Function jim:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdcaE
function name:  jim
number of ops:  5
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    8     4      > RETURN                                                   null

End of function jim

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1394 KiB | 17 Q