3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $prop = array("Santa Clara" => 100, "San Pedro de Alcántara" => 200, "Nagüeles" =>300, "Torremolinos" => 400); foreach($prop as $key => $val){ if (!array_key_exists("Torremolinos",$prop)){ continue; } else{ echo 'key='.$key.' '.'val='.$val; } } /* if ((array_key_exists("Santa Clara",$prop) && array_key_exists("San Pedro de Alcántara",$prop)) ) { echo "Array Key exists...". $prop["Nagüeles"]; } else { echo "Array Key does not exist..."; } */
based on NBWfJ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
key=Santa Clara val=100key=San Pedro de Alcántara val=200key=Nagüeles val=300key=Torremolinos val=400