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/ISU1B
function name:  (null)
number of ops:  18
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        INIT_FCALL                                               'ob_end_clean'
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'headers_sent'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   10    16      > EXIT                                                     
         17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.16 ms | 1399 KiB | 21 Q