3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); var_dump($time); $time_end = microtime_float(); $time = round( ( $time_end - $time_start ) * 1000 ); echo "time: $time ms\n";
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: time in /in/kIZk9 on line 12 NULL time: 0 ms
Output for 4.3.0 - 5.4.45
NULL time: 0 ms