3v4l.org

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

preferences:
50.41 ms | 402 KiB | 5 Q