3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo E_ALL; echo "\n"; echo E_STRICT; echo "\n"; echo E_DEPRECATED; echo "\n"; echo E_ALL & ~E_DEPRECATED; echo "\n"; echo E_ALL | E_STRICT; echo "\n"; echo (E_ALL | E_STRICT) & ~E_DEPRECATED;
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
32767 2048 8192 24575 32767 24575
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.29
30719 2048 8192 22527 32767 24575
Output for 5.2.0 - 5.2.17
6143 2048 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 7 E_DEPRECATED Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 12 0 8191 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 16 0
Output for 5.0.0 - 5.1.6
2047 2048 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 7 E_DEPRECATED Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 12 0 4095 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 16 0
Output for 4.3.0 - 4.4.9
2047 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/5vt0D on line 5 E_STRICT Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 7 E_DEPRECATED Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 12 0 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/5vt0D on line 14 2047 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/5vt0D on line 16 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/5vt0D on line 16 0