3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = "1,2,3,4,5,6,"; $var_explode = array_filter(explode(',', $var)); foreach ($var_explode as $number) { echo "$number test"; }
Output for 4.3.0 - 7.1.0
1 test2 test3 test4 test5 test6 test