3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler1() { echo "\n######### " . __FUNCTION__ . "() called #########\n"; } function handler2() { echo "\n######### " . __FUNCTION__ . "() called #########\n"; print_r(error_get_last()); new bar(); } register_shutdown_function('handler1'); register_shutdown_function('handler2'); new foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vn5TE
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'handler1'
          2        DO_ICALL                                                 
   13     3        INIT_FCALL                                               'register_shutdown_function'
          4        SEND_VAL                                                 'handler2'
          5        DO_ICALL                                                 
   15     6        NEW                                              $2      'foo'
          7        DO_FCALL                                      0          
          8        FREE                                                     $2
          9      > RETURN                                                   1

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

End of function handler1

Function handler2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vn5TE
function name:  handler2
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     '%0A%23%23%23%23%23%23%23%23%23+handler2%28%29+called+%23%23%23%23%23%23%23%23%23%0A'
    9     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'error_get_last'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   10     6        NEW                                              $2      'bar'
          7        DO_FCALL                                      0          
          8        FREE                                                     $2
   11     9      > RETURN                                                   null

End of function handler2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.01 ms | 1396 KiB | 19 Q