3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: multipart/x-mixed-replace;boundary=endofsection"); print "--endofsection\n"; $pmt = array("-", "\\", "|", "/" ); for( $i = 0; $i <10;$i ++ ) { sleep(1); print "Content-type: text/plain\n\n"; print "Part $i ".$pmt[$i % 4]; print "--endofsection\n"; ob_flush(); //强制将缓存区的内容输出 flush(); //强制将缓冲区的内容发送给客户端 } print "Content-type: text/plain\n\n"; print "The end\n"; print "–endofsection–\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
Branch analysis from position: 7
filename:       /in/FZHAZ
function name:  (null)
number of ops:  30
compiled vars:  !0 = $pmt, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+multipart%2Fx-mixed-replace%3Bboundary%3Dendofsection'
          2        DO_ICALL                                                 
    3     3        ECHO                                                     '--endofsection%0A'
    4     4        ASSIGN                                                   !0, <array>
    5     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->24
    7     7    >   INIT_FCALL                                               'sleep'
          8        SEND_VAL                                                 1
          9        DO_ICALL                                                 
    8    10        ECHO                                                     'Content-type%3A+text%2Fplain%0A%0A'
    9    11        ROPE_INIT                                     3  ~7      'Part+'
         12        ROPE_ADD                                      1  ~7      ~7, !1
         13        ROPE_END                                      2  ~6      ~7, '+++++'
         14        MOD                                              ~9      !1, 4
         15        FETCH_DIM_R                                      ~10     !0, ~9
         16        CONCAT                                           ~11     ~6, ~10
         17        ECHO                                                     ~11
   10    18        ECHO                                                     '--endofsection%0A'
   11    19        INIT_FCALL                                               'ob_flush'
         20        DO_ICALL                                                 
   12    21        INIT_FCALL                                               'flush'
         22        DO_ICALL                                                 
    5    23        PRE_INC                                                  !1
         24    >   IS_SMALLER                                               !1, 10
         25      > JMPNZ                                                    ~15, ->7
   14    26    >   ECHO                                                     'Content-type%3A+text%2Fplain%0A%0A'
   15    27        ECHO                                                     'The+end%0A'
   16    28        ECHO                                                     '%E2%80%93endofsection%E2%80%93%0A'
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.1 ms | 1400 KiB | 22 Q