3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('b'=>null); var_dump(!empty($a['b'])); var_dump(isset($a['b']])); ?>
based on dnMfl
Output for 5.3.21 - 5.4.45, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ']', expecting ',' or ')' in /in/B4euF on line 4
Process exited with code 255.
Output for 5.5.24 - 5.6.16
Parse error: syntax error, unexpected ']' in /in/B4euF on line 4
Process exited with code 255.