3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array("frucht1" => "apfel","frucht2"=>"birne"); foreach ($arr as $key => $index){ echo $key; // name der Frucht echo $index; }
Output for 4.3.0 - 7.1.0
frucht1apfelfrucht2birne