3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_end_clean(); header("Connection: close"); ignore_user_abort(); // optional ob_start(); echo ('Text the user will see'); $size = ob_get_length(); header("Content-Length: $size"); ob_end_flush(); // Strange behaviour, will not work flush();            // Unless both are called ! // Do processing here sleep(30);echo('Text user will never see');?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/87N4H
function name:  (null)
number of ops:  23
compiled vars:  !0 = $size
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'ob_end_clean'
          1        DO_ICALL                                                 
    8     2        INIT_FCALL                                               'header'
          3        SEND_VAL                                                 'Connection%3A+close'
          4        DO_ICALL                                                 
    9     5        INIT_FCALL                                               'ignore_user_abort'
          6        DO_ICALL                                                 
   10     7        ECHO                                                     'Text+the+user+will+see'
   11     8        INIT_FCALL                                               'ob_get_length'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
   12    11        INIT_FCALL                                               'header'
         12        NOP                                                      
         13        FAST_CONCAT                                      ~6      'Content-Length%3A+', !0
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
   13    16        INIT_FCALL                                               'ob_end_flush'
         17        DO_ICALL                                                 
   15    18        INIT_FCALL                                               'sleep'
         19        SEND_VAL                                                 30
         20        DO_ICALL                                                 
         21        ECHO                                                     'Text+user+will+never+see'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.28 ms | 1395 KiB | 25 Q