3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sa=array(60 => array(1)); //print_r($sa); if($sa[40]!== undefined){echo "hola";}
Output for 7.2.0 - 7.3.0rc4
Notice: Undefined offset: 40 in /in/ChaqP on line 4 Warning: Use of undefined constant undefined - assumed 'undefined' (this will throw an Error in a future version of PHP) in /in/ChaqP on line 4 hola
Output for 5.3.0 - 7.1.20
Notice: Undefined offset: 40 in /in/ChaqP on line 4 Notice: Use of undefined constant undefined - assumed 'undefined' in /in/ChaqP on line 4 hola
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 40 in /in/ChaqP on line 4 Notice: Use of undefined constant undefined - assumed 'undefined' in /in/ChaqP on line 4 hola