3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "This is an example string"; $token = strtok($string, " "); while ($token !== false) { echo $token . PHP_EOL; $token = strtok(" "); }

preferences:
42.16 ms | 1102 KiB | 5 Q