3v4l.org

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

Function exceptionhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UKMHr
function name:  exceptionHandler
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%0A%23%23%23%23%23%23%23%23%23+exceptionHandler%28%29+called+%23%23%23%23%23%23%23%23%23%0A'
    4     1      > RETURN                                                   null

End of function exceptionhandler

Function errorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UKMHr
function name:  errorHandler
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     '%0A%23%23%23%23%23%23%23%23%23+errorHandler%28%29+called+%23%23%23%23%23%23%23%23%23%0A'
    7     1      > RETURN                                                   null

End of function errorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159 ms | 1395 KiB | 17 Q