3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Hello world. Beautiful day today."; $token = strtok($string, " "); while ($token !== false) { echo "$token<br>"; $token = strtok(" "); } ?>
Output for 4.3.0 - 5.2.11, 5.2.13 - 7.2.6
Hello<br>world.<br>Beautiful<br>day<br>today.<br>
Output for 5.2.12

Process exited with code 137.