3v4l.org

run code in 200+ 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 - 7.2.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)