3v4l.org

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

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

End of function myexception

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.78 ms | 1394 KiB | 15 Q