3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); for($i = 1; $i < 9999; $++) { intdiv(10, 3); } echo microtime(true) - $t; echo "\n"; $t = microtime(true); for($i = 1; $i < 9999; $++) { (int) 10 / 3; } echo microtime(true) - $t;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.00.0070.08720.15
5.6.160.0070.08720.45
5.6.150.0030.08018.15
5.6.140.0130.06318.30
5.6.130.0030.06018.14
5.6.120.0030.09020.98
5.6.110.0030.06020.95
5.6.100.0070.04720.99
5.6.90.0000.09020.95
5.6.80.0030.08320.48
5.5.300.0170.06717.98
5.5.290.0000.05317.99
5.5.280.0100.03720.73
5.5.270.0030.08720.87
5.5.260.0070.07720.83
5.5.250.0200.05020.47
5.5.240.0170.06020.16

preferences:
130.16 ms | 1394 KiB | 7 Q