3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); var_dump(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_STRICT ^ E_DEPRECATED);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
int(22517) int(22517)
Output for 5.3.0 - 5.3.29
int(22517) int(24565)
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/9ccV8 on line 3 int(0) Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/9ccV8 on line 4 int(8181)
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/9ccV8 on line 3 int(0) Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/9ccV8 on line 4 int(4085)
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/9ccV8 on line 3 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/9ccV8 on line 3 int(0) Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/9ccV8 on line 4 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/9ccV8 on line 4 int(2037)