3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "This is\tan example\nstring"; /* Use tab and newline as tokenizing characters as well */ $tok = strtok($string, " \n\t"); var_dump($tok);
based on M5ITl
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc2
string(4) "This"