3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('BR', "\n"); define('DS', DIRECTORY_SEPARATOR); $theArray = array( '1st' => 'First', '2nd' => 'Second', '3rd' => 'Third' ); foreach ($theArray as $elem) { var_dump($elem); }
Output for 4.3.0 - 7.2.0
string(5) "First" string(6) "Second" string(5) "Third"