3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [ 'foo' => null ]; var_dump(isset($a['foo'])); var_dump(array_key_exists('foo', $a)); $b = new stdClass; $b->foo = null; var_dump(isset($b->foo));
based on TCGaj
Output for 5.4.9 - 7.2.0
bool(false) bool(true) bool(false)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/QTIiK on line 3
Process exited with code 255.