3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myExceptionHandler (Exception $ex) { throw $ex; } set_exception_handler("myExceptionHandler"); throw new Exception("This should cause a fatal error and this message will be lost");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/00Xc0
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        SEND_VAL                                                 'myExceptionHandler'
          2        DO_ICALL                                                 
   10     3        NEW                                              $1      'Exception'
          4        SEND_VAL_EX                                              'This+should+cause+a+fatal+error+and+this+message+will+be+lost'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $1
          7*     > RETURN                                                   1

Function myexceptionhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/00Xc0
function name:  myExceptionHandler
number of ops:  3
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > THROW                                         0          !0
    6     2*     > RETURN                                                   null

End of function myexceptionhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.25 ms | 1394 KiB | 15 Q