3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myString = "Adam.::|::.Bob.::|::.Bill"; $kaboom = explode(".::|::.", $myString); // Use a custom unique delimiter foreach ($kaboom as $key => $value) { echo "$value - is in the array at index $key<br />"; } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Adam - is in the array at index 0<br />Bob - is in the array at index 1<br />Bill - is in the array at index 2<br />