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";
Output for git.master, git.master_jit, rfc.property-hooks
--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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.03 ms | 401 KiB | 8 Q