3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'foo'; var_dump(isset($x['bonk'])); var_dump(isset($x['bonk'][0])); var_dump(isset($x['bonk'][1]));
Output for 7.0.0 - 7.2.0
bool(false) bool(false) bool(false)
Output for 5.4.11 - 5.6.28
bool(false) bool(true) bool(false)
Output for 5.3.21 - 5.3.29
bool(true) bool(false) bool(false)