3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); // make sure ob_level is set to 1 function callback() { echo "In php 8.0.0 - 8.0.10, a die statement does prevent the trigger from being outputted: "; die(); } header_register_callback("callback"); ob_end_clean(); echo "Trigger."; echo "Execution died before this echo statement.";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0NITj
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    9     2        INIT_FCALL                                               'header_register_callback'
          3        SEND_VAL                                                 'callback'
          4        DO_ICALL                                                 
   11     5        INIT_FCALL                                               'ob_end_clean'
          6        DO_ICALL                                                 
   12     7        ECHO                                                     'Trigger.'
   13     8        ECHO                                                     'Execution+died+before+this+echo+statement.'
          9      > RETURN                                                   1

Function callback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/0NITj
function name:  callback
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'In+php+8.0.0+-+8.0.10%2C+a+die+statement+does+prevent+the+trigger+from+being+outputted%3A+'
    7     1      > EXIT                                                     
    8     2*     > RETURN                                                   null

End of function callback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.93 ms | 999 KiB | 16 Q