3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL ^ NOTICE); var_dump($undef); // NULL; var_dump($undef + 100); // 100 var_dump($undef); // NULL
based on OoAZi
Output for 7.2.0
Warning: Use of undefined constant NOTICE - assumed 'NOTICE' (this will throw an Error in a future version of PHP) in /in/egnX7 on line 2 Warning: A non-numeric value encountered in /in/egnX7 on line 2 Notice: Undefined variable: undef in /in/egnX7 on line 3 NULL Notice: Undefined variable: undef in /in/egnX7 on line 4 int(100) Notice: Undefined variable: undef in /in/egnX7 on line 5 NULL
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant NOTICE - assumed 'NOTICE' in /in/egnX7 on line 2 Warning: A non-numeric value encountered in /in/egnX7 on line 2 Notice: Undefined variable: undef in /in/egnX7 on line 3 NULL Notice: Undefined variable: undef in /in/egnX7 on line 4 int(100) Notice: Undefined variable: undef in /in/egnX7 on line 5 NULL
Output for 5.3.17 - 7.0.20
Notice: Use of undefined constant NOTICE - assumed 'NOTICE' in /in/egnX7 on line 2 Notice: Undefined variable: undef in /in/egnX7 on line 3 NULL Notice: Undefined variable: undef in /in/egnX7 on line 4 int(100) Notice: Undefined variable: undef in /in/egnX7 on line 5 NULL