3v4l.org

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

Function handler1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zl1P0
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/Zl1P0
function name:  handler2
number of ops:  5
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        NEW                                              $0      'bar'
          2        DO_FCALL                                      0          
          3        FREE                                                     $0
   10     4      > RETURN                                                   null

End of function handler2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1395 KiB | 15 Q