3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); //echo $pieces[0]; // piece1 print_r($pieces);
Output for 5.6.0 - 7.3.0beta1
Array ( [0] => piece1 [1] => piece2 [2] => piece3 [3] => piece4 [4] => piece5 [5] => piece6 )