3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = -2
filename:       /in/00Xc0
function name:  (null)
number of ops:  9
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        INIT_FCALL                                               'set_exception_handler'
         2        SEND_VAL                                                 'myExceptionHandler'
         3        DO_ICALL                                                 
  10     4        NEW                                              $1      :-4
         5        SEND_VAL_EX                                              'This+should+cause+a+fatal+error+and+this+message+will+be+lost'
         6        DO_FCALL                                      0          
         7      > THROW                                         0          $1
         8*     > RETURN                                                   1

Function myexceptionhandler:
Finding entry points
Branch analysis from position: 0
Jump found. 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 7.2.0