3v4l.org

run code in 300+ PHP versions simultaneously
<?phpdie(0); /*E_ERROR E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_COMPILE_WARNING*/ function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); echo "\n"; echo "Hello World"; echo "\n\n"; var_dump(error_get_last()); declare(foo='bar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LE4gh
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL_BY_NAME                                       'phpdie'
          1        SEND_VAL_EX                                              0
          2        DO_FCALL                                      0          
   11     3        INIT_FCALL                                               'set_error_handler'
          4        SEND_VAL                                                 'exception_error_handler'
          5        INIT_FCALL                                               'error_reporting'
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
   16     9        ECHO                                                     '%0A'
   17    10        ECHO                                                     'Hello+World'
   18    11        ECHO                                                     '%0A%0A'
   19    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'error_get_last'
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                                 
   20    17      > RETURN                                                   1

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

End of function exception_error_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.1 ms | 1395 KiB | 21 Q