3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start('assert'); echo 'phpinfo()===$out=ob_get_contents()'; ob_end_flush(); echo $out;
based on eiFFF
Output for 7.1.0 - 7.2.0
phpinfo()===$out=ob_get_contents() Warning: Cannot call assert() with string argument dynamically in /in/fTtvs on line 5 Notice: Undefined variable: out in /in/fTtvs on line 6
Output for 7.0.1 - 7.0.20
phpinfo()===$out=ob_get_contents() Warning: phpinfo() has been disabled for security reasons in /in/fTtvs(5) : assert code on line 1 Warning: assert(): 9: "phpinfo()===$out=ob_get_contents()" failed in /in/fTtvs on line 5 phpinfo()===$out=ob_get_contents() Warning: phpinfo() has been disabled for security reasons in /in/fTtvs(5) : assert code on line 1
Output for 5.4.8 - 7.0.0
phpinfo()===$out=ob_get_contents() Warning: phpinfo() has been disabled for security reasons in /in/fTtvs(5) : assert code on line 1
Output for 5.4.0 - 5.4.7
Notice: Undefined variable: out in /in/fTtvs on line 6