3v4l.org

run code in 300+ PHP versions simultaneously
<?php var $ar = []; for($i = 0; $i++; $i<1e6) { $ar[$i] = $i; }

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.0100.04320.24
5.6.160.0100.04020.52
5.6.150.0070.03718.21
5.6.140.0070.03718.11
5.6.130.0030.08318.15
5.6.120.0070.06721.00
5.6.110.0070.08721.08
5.6.100.0030.08721.10
5.6.90.0070.05721.12
5.6.80.0100.05720.50
5.5.300.0070.05017.98
5.5.290.0030.08318.03
5.5.280.0070.04320.93
5.5.270.0070.04320.95
5.5.260.0100.03720.80
5.5.250.0030.07320.66
5.5.240.0300.07320.16

preferences:
140.13 ms | 1394 KiB | 7 Q