3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(function ($s) { return 'ob: ' . $s; }, 2); for ($i = 1; $i <= 5; $i++) { echo $i . "\n"; sleep(1); }
based on 6pgnv
Output for 5.3.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ob: 1 ob: 2 ob: 3
Process exited with code 137.