3v4l.org

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