3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(); $array['mes'] = ''; if array_key_exists( 'mes', $array ){ echo "mes exsits\n"; }else{ echo "mes not exsits\n"; } if array_key_exists( 'hoge', $array ){ echo "mes exsits\n"; }else{ echo "mes not exsits\n"; } if ($array['mes']) { echo "y"; }else{ echo "n"; } if ($array['hoge']) { echo "y"; }else{ echo "n"; }
based on D9Feq
Output for 5.4.1 - 5.6.13
Parse error: syntax error, unexpected 'array_key_exists' (T_STRING), expecting '(' in /in/vlg0k on line 5
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting '(' in /in/vlg0k on line 5
Process exited with code 255.