3v4l.org

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

Function exception_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/6r9b4
function name:  exception_handler
number of ops:  4
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ECHO                                                     'Exception+page%0A'
    5     2      > EXIT                                                     
    6     3*     > RETURN                                                   null

End of function exception_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.31 ms | 1399 KiB | 17 Q