3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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";
Output for 5.3.4 - 5.6.21, 7.0.0 - 7.1.0
--endofsection Content-type: text/plain Part 0 ---endofsection Notice: ob_flush(): failed to flush buffer. No buffer to flush in /in/FZHAZ on line 11 Content-type: text/plain Part 1 \--endofsection Notice: ob_flush(): failed to flush buffer. No buffer to flush in /in/FZHAZ on line 11
Process exited with code 137.
Output for hhvm-3.12.0
--endofsection Content-type: text/plain Part 0 ---endofsection Content-type: text/plain Part 1 \--endofsection
Process exited with code 137.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.11 - 5.3.3
--endofsection Content-type: text/plain Part 0 ---endofsection Notice: ob_flush(): failed to flush buffer. No buffer to flush. in /in/FZHAZ on line 11 Content-type: text/plain Part 1 \--endofsection Notice: ob_flush(): failed to flush buffer. No buffer to flush. in /in/FZHAZ on line 11
Process exited with code 137.