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 - 7.1.0
Sample task text 2014-03-22 \ Context Tag