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"; } var_dump(headers_list()); ob_end_flush();
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/8JEKv
function name:  (null)
number of ops:  19
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'
   15    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'headers_list'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
   17    16        INIT_FCALL                                               'ob_end_flush'
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.26 ms | 1395 KiB | 25 Q