3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$e = error_reporting(E_ALL); //echo $e."\n"; $e = error_reporting(0); echo $e."\n"; $u = error_reporting($e); $v = error_reporting(0); echo $u."\n"; echo $v."\n"; echo "done";
Output for 4.3.0 - 5.6.21, 7.0.0 - 7.1.0
-1 0 -1 done
Output for hhvm-3.10.0 - 3.12.0
8191 0 8191 done