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 UTj6s
Output for 7.1.0 - 7.2.0
phpinfo()===($out=ob_get_contents()) Warning: Cannot call assert() with string argument dynamically in /in/UD0si on line 5 Notice: Undefined variable: out in /in/UD0si 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/UD0si(5) : assert code on line 1 Warning: assert(): 9: "phpinfo()===($out=ob_get_contents())" failed in /in/UD0si on line 5 phpinfo()===($out=ob_get_contents()) Warning: phpinfo() has been disabled for security reasons in /in/UD0si(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/UD0si(5) : assert code on line 1
Output for 5.4.0 - 5.4.7
Notice: Undefined variable: out in /in/UD0si on line 6