3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_handler($exception) { echo "Uncaught exception: " , $exception->getMessage(), "\n"; } set_exception_handler('exception_handler'); throw new Exception('Uncaught Exception'); echo "Not Executed\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/RrTmc
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'set_exception_handler'
          1        SEND_VAL                                                 'exception_handler'
          2        DO_ICALL                                                 
   11     3        NEW                                              $1      'Exception'
          4        SEND_VAL_EX                                              'Uncaught+Exception'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $1
   12     7*       ECHO                                                     'Not+Executed%0A'
   13     8*     > RETURN                                                   1

Function exception_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RrTmc
function name:  exception_handler
number of ops:  7
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'Uncaught+exception%3A+'
          2        INIT_METHOD_CALL                                         !0, 'getMessage'
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
          5        ECHO                                                     '%0A'
    7     6      > RETURN                                                   null

End of function exception_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.47 ms | 1395 KiB | 15 Q