3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello world. Beautiful day today."; $token = strtok($string, " "); while ($token !== false) { echo "$token<br>"; $token = strtok(" "); } ?>

preferences:
43.95 ms | 402 KiB | 5 Q