3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(E_ALL & ~E_NOTICE); echo $x; var_dump(E_ALL ^ E_NOTICE); echo $x;
Output for 5.4.0 - 7.1.0
int(32759) Notice: Undefined variable: x in /in/905W6 on line 4 int(32759) Notice: Undefined variable: x in /in/905W6 on line 6
Output for 5.3.0 - 5.3.29
int(30711) Notice: Undefined variable: x in /in/905W6 on line 4 int(30711) Notice: Undefined variable: x in /in/905W6 on line 6
Output for 5.2.0 - 5.2.17
int(6135) Notice: Undefined variable: x in /in/905W6 on line 4 int(6135) Notice: Undefined variable: x in /in/905W6 on line 6
Output for 5.0.4 - 5.1.6
int(2039) Notice: Undefined variable: x in /in/905W6 on line 4 int(2039) Notice: Undefined variable: x in /in/905W6 on line 6
Output for 4.3.0 - 5.0.3
int(2039) Notice: Undefined variable: x in /in/905W6 on line 4 int(2039) Notice: Undefined variable: x in /in/905W6 on line 6