3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php header( 'Content-type: text/html; charset=utf-8' ); echo 'Begin ...<br />'; for( $i = 0 ; $i < 10 ; $i++ ) { echo $i . '<br />'; flush(); ob_flush(); sleep(1); } echo 'End ...<br />';
based on praBI
Output for 5.3.9 - 5.6.28, 7.0.0 - 7.1.0
Begin ...<br />0<br /> Notice: ob_flush(): failed to flush buffer. No buffer to flush in /in/W9Gv5 on line 8 1<br /> Notice: ob_flush(): failed to flush buffer. No buffer to flush in /in/W9Gv5 on line 8 2<br /> Notice: ob_flush(): failed to flush buffer. No buffer to flush in /in/W9Gv5 on line 8
Process exited with code 137.
Output for hhvm-3.10.0 - 3.12.0
Begin ...<br />0<br />1<br />2<br />
Process exited with code 137.