3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); header("X-WTFIDONTEVEN: true"); if (headers_sent()) { echo "sent"; } else { echo "not sent"; } ob_end_clean();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4GYYX
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    4     2        INIT_FCALL                                               'header'
          3        SEND_VAL                                                 'X-WTFIDONTEVEN%3A+true'
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'headers_sent'
          6        DO_ICALL                                         $2      
          7      > JMPZ                                                     $2, ->10
    8     8    >   ECHO                                                     'sent'
          9      > JMP                                                      ->11
   11    10    >   ECHO                                                     'not+sent'
   14    11    >   INIT_FCALL                                               'ob_end_clean'
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.06 ms | 1394 KiB | 21 Q