3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $string = "This is an?example string"; for( $i=0; $i<=10; $i++ ) $result = strtok( $string, '?' ); $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 3 ); echo $r; echo $result;

preferences:
38.11 ms | 402 KiB | 5 Q