3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php echo eval('return E_ALL ^ E_NOTICE ^ E_WARNING ^ E_STRICT ^ E_DEPRECATED;'); echo PHP_EOL; echo eval('return E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED;');
Output for 5.4.0 - 5.6.3, php7@20140507 - 20141101, hhvm-3.1.0 - 3.4.0
22517 22517
Output for 5.3.0 - 5.3.29, hhvm-3.0.1
24565 22517
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(3) : eval()'d code on line 1 8181 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(5) : eval()'d code on line 1 0
Output for 5.0.2 - 5.1.6
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(3) : eval()'d code on line 1 4085 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(5) : eval()'d code on line 1 0
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(3) : eval()'d code on line 1 4085 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/KYgjR on line 4 PHP_EOL Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(5) : eval()'d code on line 1 0
Output for 4.3.10 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KYgjR(3) : eval()'d code on line 1 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(3) : eval()'d code on line 1 2037 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KYgjR(5) : eval()'d code on line 1 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(5) : eval()'d code on line 1 0
Output for 4.3.0 - 4.3.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KYgjR(3) : eval()'d code on line 1 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(3) : eval()'d code on line 1 2037 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/KYgjR on line 4 PHP_EOL Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KYgjR(5) : eval()'d code on line 1 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/KYgjR(5) : eval()'d code on line 1 0