3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start(null, 0, true); echo 'hello world'; $foo = ob_get_clean(); var_dump($foo);
Output for 5.4.0 - 7.2.0
hello world Notice: ob_get_clean(): failed to discard buffer of default output handler (0) in /in/AklcY on line 5 Notice: ob_get_clean(): failed to delete buffer of default output handler (0) in /in/AklcY on line 5 string(11) "hello world"
Output for 4.3.0 - 5.3.29
string(11) "hello world"