3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); for ($i = 0; $i < 10000; ++$i) { random_int(0, 25); } echo microtime(true) - $s;

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.4.00.0590.01614.76
7.3.120.0640.02014.84
7.3.110.0710.01314.79
7.3.100.0030.02414.68
7.3.90.0460.00314.68
7.3.80.0150.01114.70
7.3.70.0300.00714.60
7.3.60.0130.01314.91
7.3.50.0340.01614.62
7.3.40.0370.01014.84
7.3.30.0280.01414.98
7.3.20.0230.01016.79
7.3.10.0170.01416.34
7.3.00.0200.02016.46
7.2.250.0730.01315.00
7.2.240.0720.01414.95
7.2.230.0150.00915.16
7.2.220.0370.01714.95
7.2.210.0160.01314.88
7.2.200.0220.01314.98
7.2.190.0100.01614.95
7.2.180.0350.01314.86
7.2.170.0030.02114.92
7.1.330.0140.01715.67
7.1.320.0230.01315.46
7.1.310.0100.01715.72
7.1.300.0090.01815.47
7.1.290.0450.00615.79
7.1.280.0220.00415.75
7.1.270.0250.01415.75
7.1.260.0230.01715.85
7.1.70.0090.00316.86
7.1.60.0140.00319.87
7.1.50.0220.00916.79
7.1.00.0130.07722.31
7.0.200.0370.01014.94
7.0.70.0930.07019.97
7.0.60.1030.06320.00
7.0.50.1000.06320.35
7.0.40.1170.07720.21
7.0.30.1000.07020.34
7.0.20.1170.06320.35
7.0.10.1000.07020.31
7.0.00.0970.06720.31
5.6.220.0770.05720.80
5.6.210.0770.05020.55
5.6.200.0930.05721.11
5.6.190.0830.06721.10
5.6.180.0830.06021.08
5.6.170.0770.05721.09
5.6.160.0770.06321.08
5.6.150.0830.05321.09
5.6.140.0870.06021.10
5.6.130.0670.06721.08
5.6.120.0130.09021.07
5.6.110.0970.05721.09
5.6.100.0870.04721.18
5.6.90.0730.06021.09
5.6.80.0730.06020.45
5.6.70.0670.06320.57
5.6.60.0730.05720.51
5.6.50.1070.07320.46
5.6.40.0670.06720.38
5.6.30.0730.05020.44
5.6.20.0700.05720.37
5.6.10.0830.05020.37
5.6.00.0700.05720.42
5.5.360.0830.06020.59
5.5.350.0730.06320.33
5.5.340.0800.05720.97
5.5.330.0830.05720.89
5.5.320.0800.06020.89
5.5.310.0870.08720.96
5.5.300.0770.05320.96
5.5.290.0730.06720.89
5.5.280.0070.07020.82
5.5.270.0730.06720.84
5.5.260.0730.06720.92
5.5.250.0800.06020.74
5.5.240.0930.05020.27
5.5.230.0670.06020.30
5.5.220.0730.05320.34
5.5.210.0800.05320.34
5.5.200.0730.05320.20
5.5.190.0630.06320.30
5.5.180.0800.05020.11
5.5.160.0830.04320.18
5.5.150.0700.05720.31
5.5.140.0770.05320.26
5.5.130.0830.05020.31
5.5.120.0770.07020.22
5.5.110.0770.05320.11
5.5.100.0700.07020.22
5.5.90.0800.05320.12
5.5.80.0800.04720.22
5.5.70.0700.07320.09
5.5.60.0870.06320.05
5.5.50.0830.06320.15
5.5.40.0630.06320.21
5.5.30.0830.06720.17
5.5.20.0800.07720.04
5.5.10.0930.07720.03
5.5.00.0900.07320.05

preferences:
19.77 ms | 403 KiB | 5 Q