3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_NOTICE | E_STRICT); $null = array(); var_dump($null['foobar']); $zero = 0; var_dump($zero['foobar']);
based on 54hRY
Output for 5.3.0 - 7.1.0
Notice: Undefined index: foobar in /in/bfvpQ on line 5 NULL NULL
Output for 5.0.0 - 5.2.17
Notice: Undefined index: foobar in /in/bfvpQ on line 5 NULL NULL
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/bfvpQ on line 2 Notice: Undefined index: foobar in /in/bfvpQ on line 5 NULL NULL