3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xy = microtime(true); $n = 10000; while (--$n) { $a = 'hello, world!'; } // multiplication and formatting do not count as they go after the subtraction echo ("\nExecution took: " . number_format((microtime(true) - $xy) * 1000000, 0, '.', '') . " microsecond(s).\n");
Output for 7.3.1
Execution took: 141 microsecond(s).
Output for 7.3.0
Execution took: 132 microsecond(s).
Output for 7.2.2, 7.2.12 - 7.2.13
Execution took: 131 microsecond(s).
Output for 7.2.11
Execution took: 139 microsecond(s).
Output for 7.2.10
Execution took: 152 microsecond(s).
Output for 7.2.9
Execution took: 130 microsecond(s).
Output for 7.2.8
Execution took: 238 microsecond(s).
Output for 7.2.7
Execution took: 135 microsecond(s).
Output for 7.2.6
Execution took: 222 microsecond(s).
Output for 7.2.5
Execution took: 202 microsecond(s).
Output for 7.2.4
Execution took: 347 microsecond(s).
Output for 7.2.3
Execution took: 261 microsecond(s).
Output for 7.2.1
Execution took: 168 microsecond(s).
Output for 7.2.0
Execution took: 193 microsecond(s).
Output for 7.1.25
Execution took: 683 microsecond(s).

preferences:
55.46 ms | 401 KiB | 22 Q