3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_NOTICE | E_STRICT); #reports undefined variable echo $xxx; #does not report error $xxx = false; echo $xxx[1]; #reports undefinied offset $xxx = array(); echo $xxx[1];
Output for 5.3.0 - 7.2.0
Notice: Undefined variable: xxx in /in/dEBQB on line 5 Notice: Undefined offset: 1 in /in/dEBQB on line 13
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: xxx in /in/dEBQB on line 5 Notice: Undefined offset: 1 in /in/dEBQB on line 13
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: xxx in /in/dEBQB on line 5 Notice: Undefined offset: 1 in /in/dEBQB on line 13
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/dEBQB on line 2 Notice: Undefined variable: xxx in /in/dEBQB on line 5 Notice: Undefined offset: 1 in /in/dEBQB on line 13