3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(E_ALL & ~E_WARNING); echo $x; var_dump(E_ALL ^ E_NOTICE); echo $x;
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(32765) Notice: Undefined variable: x in /in/j5BPG on line 4 int(32759) Notice: Undefined variable: x in /in/j5BPG on line 6
Output for 5.3.0 - 5.3.29
int(30717) Notice: Undefined variable: x in /in/j5BPG on line 4 int(30711) Notice: Undefined variable: x in /in/j5BPG on line 6
Output for 5.2.0 - 5.2.17
int(6141) Notice: Undefined variable: x in /in/j5BPG on line 4 int(6135) Notice: Undefined variable: x in /in/j5BPG on line 6
Output for 5.0.4 - 5.1.6
int(2045) Notice: Undefined variable: x in /in/j5BPG on line 4 int(2039) Notice: Undefined variable: x in /in/j5BPG on line 6
Output for 4.3.0 - 5.0.3
int(2045) Notice: Undefined variable: x in /in/j5BPG on line 4 int(2039) Notice: Undefined variable: x in /in/j5BPG on line 6