3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); echo 'test'; $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/ksLep
function name:  (null)
number of ops:  21
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                                                 
    4     2        ECHO                                                     'test'
    5     3        INIT_FCALL                                               'headers_sent'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    6     6        BEGIN_SILENCE                                    ~5      
          7        INIT_FCALL                                               'ob_end_clean'
          8        DO_ICALL                                                 
          9        END_SILENCE                                              ~5
    7    10        INIT_FCALL                                               'headers_sent'
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   10    19      > EXIT                                                     
         20*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.04 ms | 1395 KiB | 21 Q