3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0.000This is an