3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $acc['pes'] = 'aaaaa'; var_dump($acc['pes']); var_dump($acc['kocka']); var_dump(isset($acc['kocka'])); var_dump(array_key_exists($acc['kocka']));
Output for 5.3.0 - 7.2.0
string(5) "aaaaa" Notice: Undefined index: kocka in /in/pPRea on line 5 NULL bool(false) Notice: Undefined index: kocka in /in/pPRea on line 7 Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/pPRea on line 7 NULL
Output for 4.3.0 - 5.2.17
string(5) "aaaaa" Notice: Undefined index: kocka in /in/pPRea on line 5 NULL bool(false) Notice: Undefined index: kocka in /in/pPRea on line 7 Warning: Wrong parameter count for array_key_exists() in /in/pPRea on line 7 NULL