3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t0 = microtime(true); foreach(range(0,10000) as $i); $t1 = microtime(true); for($i = 0; $i < 10000; ++$i); $t2 = microtime(true); $t_range = $t1 - $t0; $t_no_range = $t2 - $t1; $ratio = $t_range/$t_no_range; echo "Results: Range is {$ratio} times slower. --- With range: {$t_range}ms Without range: {$t_no_range}ms ";

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)
8.3.30.0080.01420.38
8.0.10.0120.00817.21
8.0.00.0070.01417.45
7.4.140.0120.00616.74
7.4.130.0110.00716.78
7.4.120.0170.00316.71
7.4.110.0120.00616.66
7.4.100.0060.01316.66
7.4.90.0100.00916.67
7.4.80.0130.01016.66
7.4.70.0090.00916.73
7.4.60.0100.00716.91
7.4.50.0090.01217.04
7.4.40.0080.01116.63
7.4.30.0070.01016.81
7.4.20.0140.00516.62
7.4.10.0070.01115.84
7.4.00.0090.01115.77
7.3.260.0140.00416.59
7.3.250.0100.01016.75
7.3.240.0070.01116.62
7.3.230.0110.00716.64
7.3.220.0160.00316.56
7.3.210.0080.01116.75
7.3.200.0090.00916.58
7.3.190.0100.00716.61
7.3.180.0100.01016.82
7.3.170.0110.00716.66
7.3.160.0040.01316.84
7.3.150.0130.00716.89
7.3.140.0070.01016.73
7.3.130.0050.01416.13
7.3.120.0070.00915.70
7.3.110.0110.00815.70
7.3.100.0070.01015.65
7.3.90.0100.00515.73
7.3.80.0090.01015.63
7.3.70.0110.00215.55
7.3.60.0090.00715.59
7.3.50.0070.00915.55
7.3.40.0080.00815.55
7.3.30.0100.00715.59
7.3.20.0100.00416.58
7.3.10.0060.00916.69
7.3.00.0050.01316.48
7.2.340.0190.01017.07
7.2.330.0200.00816.90
7.2.320.0210.00916.97
7.2.310.0130.01416.88
7.2.300.0200.00717.06
7.2.290.0210.01116.86
7.2.280.0240.00516.66
7.2.270.0140.01416.68
7.2.260.0140.01016.14
7.2.250.0130.01115.85
7.2.240.0090.01315.83
7.2.230.0110.01115.83
7.2.220.0110.00915.82
7.2.210.0100.01115.80
7.2.200.0100.01015.80
7.2.190.0100.01315.76
7.2.180.0100.00715.93
7.2.170.0140.00515.88
7.2.160.0120.00816.12
7.2.150.0160.00816.87
7.2.140.0050.01416.83
7.2.130.0100.01216.82
7.2.120.0160.00416.90
7.2.110.0100.00716.84
7.2.100.1280.00616.10
7.2.90.1210.01016.13
7.2.80.1480.01316.36
7.2.70.1240.00916.35
7.2.60.1030.00816.32
7.2.50.1240.00916.32
7.2.40.1210.00716.28
7.2.30.1100.01116.23
7.2.20.0810.00916.49
7.2.10.0820.00816.28
7.2.00.1080.00716.12
7.1.330.0070.00715.86
7.1.320.0090.01115.72
7.1.310.0080.01015.70
7.1.300.0100.00815.74
7.1.290.0090.00815.79
7.1.280.0080.01015.89
7.1.270.0090.00915.78
7.1.260.0110.00615.88
7.1.250.0080.01115.79
7.1.240.0130.00815.79
7.1.230.0080.01115.71
7.1.220.1820.01115.28
7.1.210.1420.01015.14
7.1.200.1190.00615.13
7.1.190.1120.00715.20
7.1.180.0180.00715.31
7.1.170.1220.00915.20
7.1.160.1050.00515.20
7.1.150.1250.01115.07
7.1.140.0820.00815.22
7.1.130.1060.00615.27
7.1.120.1080.00915.18
7.1.110.1160.01115.16
7.1.100.0990.00515.22
7.1.90.1150.00714.90
7.1.80.1060.00915.25
7.1.70.1150.00515.16
7.1.60.1180.00921.11
7.1.50.2160.00921.15
7.1.40.1970.00821.32
7.1.30.1700.00821.17
7.1.20.1440.00721.07
7.1.10.1810.01315.06
7.1.00.1210.00915.17
7.0.330.0160.00615.49
7.0.320.0130.00915.53
7.0.310.0200.00615.39
7.0.300.0080.01615.46
7.0.290.0130.01315.47
7.0.280.0090.01415.50
7.0.270.0150.00815.53
7.0.260.0110.01015.49
7.0.250.0160.00815.52
7.0.240.0140.00815.50
7.0.230.0150.00815.65
7.0.220.0170.00515.30
7.0.210.0150.00615.52
7.0.200.0180.00715.30
7.0.190.0140.01015.39
7.0.180.0120.00815.52
7.0.170.0230.01015.54
7.0.160.0130.01015.39
7.0.150.0110.01015.34
7.0.140.0130.00915.43
7.0.130.0170.00415.46
7.0.120.0180.00815.38
7.0.110.0160.00615.37
7.0.100.0110.01115.58
7.0.90.0150.00615.45
7.0.80.0140.01015.64
7.0.70.0110.01015.48
7.0.60.0150.00615.46
7.0.50.0160.00915.37
7.0.40.0110.01014.42
7.0.30.0070.00714.44
7.0.20.0200.00814.18
7.0.10.0090.01214.40
7.0.00.0080.00714.39
5.6.400.0150.00916.25
5.6.390.0150.01415.95
5.6.380.0130.01215.93
5.6.370.0110.01216.29
5.6.360.0180.01116.30
5.6.350.0160.01416.46
5.6.340.0140.01016.37
5.6.330.0180.00916.34
5.6.320.0160.01116.03
5.6.310.0140.01216.09
5.6.300.0150.01316.23
5.6.290.0160.00716.26
5.6.280.0140.01416.34
5.6.270.0140.01116.34
5.6.260.0200.00616.12
5.6.250.0150.01516.37
5.6.240.0120.01316.19
5.6.230.0120.01516.13
5.6.220.0130.01416.16
5.6.210.0230.00516.05
5.6.200.0150.01016.35
5.6.190.0210.00616.07
5.6.180.0060.01516.32
5.6.170.0100.01516.27
5.6.160.0130.01316.15
5.6.150.0060.01616.39
5.6.140.0110.01116.13
5.6.130.0120.01016.35
5.6.120.0090.01316.40
5.6.110.0100.01116.15
5.6.100.0090.01416.27
5.6.90.0050.01716.25
5.6.80.0100.01516.17
5.6.70.0130.01116.10
5.6.60.0140.01116.10
5.6.50.0100.01015.97
5.6.40.0120.01016.24
5.6.30.0110.01316.24
5.6.20.0090.01116.08
5.6.10.0130.00915.99
5.6.00.0100.01316.32

preferences:
58.91 ms | 403 KiB | 5 Q