3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Sample task text @Context &Tag ^2014-03-22"; $tok = strtok($string, '^@'); while($tok !== false) { echo $tok."\n"; $tok = strtok('^@&'); }

preferences:
39.41 ms | 402 KiB | 5 Q