3v4l.org

run code in 200+ 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 - 7.2.0
ob: 1 ob: 2 ob: 3
Process exited with code 137.