3v4l.org

run code in 300+ 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"; try { sdfdsf(); } catch (\Exception $e) { echo 'sdfsfsdfdsf'; } echo 'dffsfdff';
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 = 42) Position 1 = 18
Branch analysis from position: 18
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 = 42) Position 1 = 18
Branch analysis from position: 18
Found catch point at position: 16
Branch analysis from position: 16
2 jumps found. (Code = 107) Position 1 = 17, Position 2 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rAPRn
function name:  (null)
number of ops:  20
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'
   24    13        INIT_FCALL_BY_NAME                                       'sdfdsf'
         14        DO_FCALL                                      0          
         15      > JMP                                                      ->18
   25    16  E > > CATCH                                       last         'Exception'
   26    17    >   ECHO                                                     'sdfsfsdfdsf'
   29    18    >   ECHO                                                     'dffsfdff'
         19      > RETURN                                                   1

Function error:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/rAPRn
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/rAPRn
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.0.0


preferences:
154.81 ms | 1392 KiB | 17 Q