3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array('key' => null); var_dump(isset($data['key'])); var_dump(array_key_exists($data['key'])); var_dump(isset($data['key']) && $data['key']);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false) Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/qT3vQ on line 5 NULL bool(false)
Output for 4.3.0 - 5.2.17
bool(false) Warning: Wrong parameter count for array_key_exists() in /in/qT3vQ on line 5 NULL bool(false)