3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Sample task text ^2014-03-22 @Context &Tag"; $tok = strtok($string, '^@'); while($tok !== false) { echo $tok."\n"; $tok = strtok('^@&'); }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Sample task text 2014-03-22 Context Tag
Output for hhvm-3.10.0

Process exited with code 153.