3v4l.org

run code in 200+ PHP versions simultaneously
<?php function shutdown() { echo "triggered\n"; } register_shutdown_function( 'shutdown' ); echo "start\n"; bla(); echo "end\n";
based on maBnS
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eaLnk
function name:  (null)
number of ops:  8
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   INIT_FCALL                                               'register_shutdown_function'
         1        SEND_VAL                                                 'shutdown'
         2        DO_ICALL                                                 
   9     3        ASSIGN_OBJ                                               'start%0A'
  11     4        INIT_FCALL_BY_NAME                                       'bla'
         5        DO_FCALL                                      0          
  13     6        ASSIGN_OBJ                                               'end%0A'
         7      > RETURN                                                   1

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

End of function shutdown

Generated using Vulcan Logic Dumper, using php 7.4.0