3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $sent_a = headers_sent(); @ob_end_clean(); // or ob_clean(); etc.. $sent_b = headers_sent(); var_dump($sent_a); var_dump($sent_b); exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/BS6sh
function name:  (null)
number of ops:  20
compiled vars:  !0 = $sent_a, !1 = $sent_b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    5     2        INIT_FCALL                                               'headers_sent'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        BEGIN_SILENCE                                    ~5      
          6        INIT_FCALL                                               'ob_end_clean'
          7        DO_ICALL                                                 
          8        END_SILENCE                                              ~5
    7     9        INIT_FCALL                                               'headers_sent'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   10    18      > EXIT                                                     
         19*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.13 ms | 1394 KiB | 21 Q