3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php printf("%020b\n", E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); printf("%020b\n", E_ALL ^ E_NOTICE ^ E_WARNING ^ E_STRICT ^ E_DEPRECATED);
Output for 5.4.0 - 7.1.0
00000101011111110101 00000101011111110101
Output for 5.3.0 - 5.3.29
00000101011111110101 00000101111111110101
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/nTRB2 on line 3 00000000000000000000 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/nTRB2 on line 4 00000001111111110101
Output for 5.0.0 - 5.1.6
Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/nTRB2 on line 3 00000000000000000000 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/nTRB2 on line 4 00000000111111110101
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/nTRB2 on line 3 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/nTRB2 on line 3 00000000000000000000 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/nTRB2 on line 4 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/nTRB2 on line 4 00000000011111110101