3v4l.org

run code in 300+ PHP versions simultaneously
<?php function default_error_handler($errorNumber, $message, $errfile, $errline){ echo " default_error_handler:\r\n"; var_dump($errorNumber, $message, $errfile, $errline, error_get_last()); echo "/default_error_handler\r\n"; } function unexpected_shutdown_handler(){ echo " unexpected_shutdown_handler:\r\n"; var_dump(error_get_last()); echo "/unexpected_shutdown_handler\r\n"; } set_error_handler('default_error_handler'); register_shutdown_function('unexpected_shutdown_handler'); try{ $a=new Fi(); }catch(Exception $e){ echo " catch Exception:\r\n"; var_dump($e); } echo "end"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JELOs
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'default_error_handler'
          2        DO_ICALL                                                 
   14     3        INIT_FCALL                                               'register_shutdown_function'
          4        SEND_VAL                                                 'unexpected_shutdown_handler'
          5        DO_ICALL                                                 
   16     6        NEW                                              $4      'Fi'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $4
          9      > JMP                                                      ->15
   17    10  E > > CATCH                                       last         'Exception'
   18    11    >   ECHO                                                     '+catch+Exception%3A%0D%0A'
   19    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   21    15    >   ECHO                                                     'end'
   22    16      > RETURN                                                   1

Function default_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JELOs
function name:  default_error_handler
number of ops:  16
compiled vars:  !0 = $errorNumber, !1 = $message, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    3     4        ECHO                                                     '+default_error_handler%3A%0D%0A'
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !3
         10        INIT_FCALL                                               'error_get_last'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    5    14        ECHO                                                     '%2Fdefault_error_handler%0D%0A'
    6    15      > RETURN                                                   null

End of function default_error_handler

Function unexpected_shutdown_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JELOs
function name:  unexpected_shutdown_handler
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     '+unexpected_shutdown_handler%3A%0D%0A'
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'error_get_last'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   10     6        ECHO                                                     '%2Funexpected_shutdown_handler%0D%0A'
   11     7      > RETURN                                                   null

End of function unexpected_shutdown_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.61 ms | 1392 KiB | 21 Q