3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'hello form world. i am windows. i am linux '; $pieces = explode(".", $foo); for($i=0;$i<count($pieces);$i++){ var_dump($pieces[$i]); } $imp = implode(".", $pieces); echo $imp;
Output for 5.2.14 - 7.1.0
string(16) "hello form world" string(13) " i am windows" string(12) " i am linux " hello form world. i am windows. i am linux