3v4l.org

run code in 500+ PHP versions simultaneously
<?php function error($code, $message, $file = null, $line = 0) { echo "convert error to exception<br>\n"; throw new \ErrorException($message, $code, null, $file, $line); } function shutdown() { echo "shutdown function called<br>\n"; } set_error_handler('error'); register_shutdown_function('shutdown'); try { echo $crypto->compress(); } catch (\Exception $e) { echo "exception catched<br>\n"; } echo "after fatal error<br>\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
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/JMsFv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $crypto, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        SEND_VAL                                                     'error'
          2        DO_ICALL                                                     
   13     3        INIT_FCALL                                                   'register_shutdown_function'
          4        SEND_VAL                                                     'shutdown'
          5        DO_ICALL                                                     
   16     6        INIT_METHOD_CALL                                             !0, 'compress'
          7        DO_FCALL                                          0  $4      
          8        ECHO                                                         $4
          9      > JMP                                                          ->12
   17    10  E > > CATCH                                           last         'Exception'
   18    11    >   ECHO                                                         'exception+catched%3Cbr%3E%0A'
   21    12    >   ECHO                                                         'after+fatal+error%3Cbr%3E%0A'
         13      > RETURN                                                       1

Function error:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/JMsFv
function name:  error
number of ops:  14
compiled vars:  !0 = $code, !1 = $message, !2 = $file, !3 = $line
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_INIT                                            !2      null
          3        RECV_INIT                                            !3      0
    4     4        ECHO                                                         'convert+error+to+exception%3Cbr%3E%0A'
    5     5        NEW                                                  $4      'ErrorException'
          6        SEND_VAR_EX                                                  !1
          7        SEND_VAR_EX                                                  !0
          8        SEND_VAL_EX                                                  null
          9        SEND_VAR_EX                                                  !2
         10        SEND_VAR_EX                                                  !3
         11        DO_FCALL                                          0          
         12      > THROW                                             0          $4
    6    13*     > RETURN                                                       null

End of function error

Function shutdown:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JMsFv
function name:  shutdown
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                         'shutdown+function+called%3Cbr%3E%0A'
   10     1      > RETURN                                                       null

End of function shutdown

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
1587.47 ms | 3404 KiB | 29 Q