3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); var_dump(isset($a['foo']['bar']['baz'])); var_dump(array_key_exists('baz', $a['foo']['bar']));
based on N23W2

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
bool(false) Notice: Undefined index: foo in /in/AqeMh on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/AqeMh on line 6 NULL
Output for Arrow functions
bool(false) Notice: Undefined index: foo in /in/AqeMh on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/AqeMh on line 6 NULL
Output for Object typehint
bool(false) Notice: Undefined index: foo in /in/AqeMh on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/AqeMh on line 6 NULL
Output for Array change keys
bool(false) Notice: Undefined index: foo in /in/AqeMh on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/AqeMh on line 6 NULL
Output for Lexical anon
bool(false) Notice: Undefined index: foo in /in/AqeMh on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/AqeMh on line 6 NULL

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page