3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = '1,2,3,4,5,6,7,8,9'; foreach (explode(',', $test) as $key => $value) { var_dump($value); }
Output for 4.3.0 - 7.1.0
string(1) "1" string(1) "2" string(1) "3" string(1) "4" string(1) "5" string(1) "6" string(1) "7" string(1) "8" string(1) "9"