3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php eval("echo E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED;"); eval("echo E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED;");
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2251722517
Output for 5.3.0 - 5.3.29
2251724565
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/0BnJE(3) : eval()'d code on line 1 0 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/0BnJE(4) : eval()'d code on line 1 8181
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/0BnJE(3) : eval()'d code on line 1 0 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/0BnJE(4) : eval()'d code on line 1 4085
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/0BnJE(3) : eval()'d code on line 1 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/0BnJE(3) : eval()'d code on line 1 0 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/0BnJE(4) : eval()'d code on line 1 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/0BnJE(4) : eval()'d code on line 1 2037