3v4l.org

run code in 500+ 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 = 61) Position 1 = -2
filename:       /in/0NITj
function name:  callback
number of ops:  4
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      > INIT_FCALL                                                   'exit'
          2*       DO_ICALL                                                     
    8     3*     > RETURN                                                       null

End of function callback

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
152.6 ms | 2026 KiB | 17 Q