3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); echo empty($a['s']) ? 'e' : 'n' . "\n"; echo "Test notice: \n"; $a['s']; $a['s'] = '1'; echo empty($a['s']) ? 'e' : 'n' . "\n";
based on j9U7J
Output for 5.3.0 - 7.1.0
eTest notice: Notice: Undefined index: s in /in/LOGTD on line 9 n
Output for 4.3.0 - 5.2.17
eTest notice: Notice: Undefined index: s in /in/LOGTD on line 9 n