3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 var_dump($pizza);
Output for 4.3.0 - 7.1.0
piece1piece2string(41) "piece1 piece2 piece3 piece4 piece5 piece6"