3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.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, hhvm-3.10.0 - 3.13.2
string(11) "hello world"