3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); register_shutdown_function( "fatal_handler" ); function fatal_handler() { $errfile = "unknown file"; $errstr = "shutdown"; $errno = E_CORE_ERROR; $errline = 0; $error = error_get_last(); if( $error !== NULL) { $errno = $error["type"]; $errfile = $error["file"]; $errline = $error["line"]; $errstr = $error["message"]; } echo $errstr; } require __DIR__ . '/../src/E2EX/Converter.php';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EkQoU
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'exception_error_handler'
          2        INIT_FCALL                                               'error_reporting'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   15     6        INIT_FCALL                                               'register_shutdown_function'
          7        SEND_VAL                                                 'fatal_handler'
          8        DO_ICALL                                                 
   37     9        INCLUDE_OR_EVAL                                          '%2Fin%2F..%2Fsrc%2FE2EX%2FConverter.php', REQUIRE
         10      > RETURN                                                   1

Function exception_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EkQoU
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
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    6     7      > RETURN                                                   null

End of function exception_error_handler

Function fatal_handler:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/EkQoU
function name:  fatal_handler
number of ops:  19
compiled vars:  !0 = $errfile, !1 = $errstr, !2 = $errno, !3 = $errline, !4 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, 'unknown+file'
   21     1        ASSIGN                                                   !1, 'shutdown'
   22     2        ASSIGN                                                   !2, 16
   23     3        ASSIGN                                                   !3, 0
   25     4        INIT_FCALL                                               'error_get_last'
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !4, $9
   27     7        TYPE_CHECK                                  1020          !4
          8      > JMPZ                                                     ~11, ->17
   28     9    >   FETCH_DIM_R                                      ~12     !4, 'type'
         10        ASSIGN                                                   !2, ~12
   29    11        FETCH_DIM_R                                      ~14     !4, 'file'
         12        ASSIGN                                                   !0, ~14
   30    13        FETCH_DIM_R                                      ~16     !4, 'line'
         14        ASSIGN                                                   !3, ~16
   31    15        FETCH_DIM_R                                      ~18     !4, 'message'
         16        ASSIGN                                                   !1, ~18
   34    17    >   ECHO                                                     !1
   36    18      > RETURN                                                   null

End of function fatal_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1400 KiB | 23 Q