3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); foreach (range(1, 1000000) as $i) { $a []= new StdClass; }

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.0280.01643.02
8.3.20.0210.00443.23
8.3.10.0100.01043.80
8.3.00.0100.00747.37
8.2.160.0290.01344.70
8.2.150.0320.00442.96
8.2.140.0200.00344.91
8.2.130.0070.00748.36
8.2.120.0070.00747.04
8.2.110.0070.01148.17
8.2.100.0250.01042.16
8.2.90.0070.01543.62
8.2.80.0150.00843.49
8.2.70.0180.00741.81
8.2.60.0130.01342.47
8.2.50.0210.00441.91
8.2.40.0100.01442.59
8.2.30.0150.00643.70
8.2.20.0200.01041.82
8.2.10.0090.01241.78
8.2.00.0240.00341.77
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00720.64
8.1.230.0030.00721.04
8.1.220.0030.00618.77
8.1.210.0000.00818.84
8.1.200.0040.00417.11
8.1.190.0040.00417.50
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.82
8.1.150.0040.00418.45
8.1.140.0070.00017.44
8.1.130.0030.00317.85
8.1.120.0070.00017.36
8.1.110.0040.00417.27
8.1.100.0030.00517.42
8.1.90.0040.00417.39
8.1.80.0040.00417.40
8.1.70.0000.00717.40
8.1.60.0000.00817.51
8.1.50.0000.00817.43
8.1.40.0080.00017.50
8.1.30.0050.00317.40
8.1.20.0030.00617.60
8.1.10.0200.02369.83
8.1.00.0300.01769.87
8.0.300.0380.01472.32
8.0.290.0220.01969.21
8.0.280.0200.02070.66
8.0.270.0200.02069.13
8.0.260.0300.01469.20
8.0.250.0190.01969.22
8.0.240.0180.02569.21
8.0.230.0230.02069.26
8.0.220.0350.01069.04
8.0.210.0240.01769.08
8.0.200.0390.01369.15
8.0.190.0290.01369.22
8.0.180.0160.02669.13
8.0.170.0190.02569.10
8.0.160.0300.02469.09
8.0.150.0200.03169.02
8.0.140.0300.02069.09
8.0.130.0390.065120.36
8.0.120.0210.02169.25
8.0.110.0230.02269.01
8.0.100.0240.01769.09
8.0.90.0170.02469.00
8.0.80.0760.04069.13
8.0.70.0130.03069.32
8.0.60.0250.01969.09
8.0.50.0240.02169.07
8.0.30.0590.04369.25
8.0.20.0730.04869.33
8.0.10.0260.01669.25
8.0.00.0610.04969.03
7.4.330.0240.01467.73
7.4.320.0230.01768.86
7.4.300.0300.01068.85
7.4.290.0130.02968.85
7.4.280.0190.02968.83
7.4.270.0190.02968.85
7.4.260.0260.082120.36
7.4.250.0140.03468.77
7.4.240.0170.02768.77
7.4.230.0170.02768.92
7.4.220.1170.05368.55
7.4.210.0510.03668.81
7.4.200.0220.01968.64
7.4.190.0250.01668.75
7.4.160.0450.05168.83
7.4.150.0730.04068.78
7.4.140.0670.04068.71
7.4.130.0560.04568.86
7.4.120.0720.03868.78
7.4.110.0660.03668.92
7.4.100.0710.06269.02
7.4.90.0700.03468.80
7.4.80.0580.05868.83
7.4.70.0680.07168.84
7.4.60.0610.04568.74
7.4.50.0230.02668.73
7.4.40.0260.03668.79
7.4.30.0840.05068.59
7.3.330.0960.073119.98
7.3.320.0770.053119.90
7.3.310.0340.01068.44
7.3.300.0330.00768.30
7.3.290.0930.04368.50
7.3.280.0650.05268.48
7.3.270.0580.04168.43
7.3.260.0660.04568.55
7.3.250.0590.04368.58
7.3.240.0680.05268.46
7.3.230.0690.03668.76
7.3.210.0720.03368.74
7.3.200.0700.06768.78
7.3.190.0710.04168.77
7.3.180.0520.05568.49
7.3.170.0480.04468.46
7.3.160.0600.04368.75
7.2.330.0550.04968.99
7.2.320.0530.05068.60
7.2.310.0580.05268.57
7.2.300.0700.06168.89
7.2.290.0680.02968.84
5.4.270.3670.08783.45
5.4.260.3470.07783.64
5.4.250.3530.06783.47
5.4.240.3670.09383.80
5.4.230.3130.06383.64
5.4.220.3130.08083.59
5.4.210.3600.07083.45
5.4.200.3600.06783.59
5.4.190.3670.06383.33
5.4.180.3770.06383.77
5.4.170.3400.07383.51
5.4.160.3300.06083.43
5.4.150.3030.07383.78
5.4.140.3170.07080.89
5.4.130.3170.07080.88
5.4.120.3500.08080.87
5.4.110.3300.07081.11
5.4.100.3400.06780.79
5.4.90.3400.06781.05
5.4.80.3300.05380.98
5.4.70.3230.06080.93
5.4.60.3470.08081.01
5.4.50.3370.06780.66
5.4.40.3430.06080.92
5.4.30.3500.06080.97
5.4.20.3330.06380.75
5.4.10.3630.06780.81
5.4.00.3470.05080.52
5.3.280.3770.08777.72
5.3.270.3600.07377.72
5.3.260.3370.07377.73
5.3.250.4430.05377.58
5.3.240.3330.06077.74
5.3.230.3670.06377.70
5.3.220.3600.06377.61
5.3.210.3630.06377.60
5.3.200.3670.08377.59
5.3.190.3570.07077.82
5.3.180.3330.06077.69
5.3.170.3470.07777.66
5.3.160.3830.06077.70
5.3.150.3430.07077.64
5.3.140.3630.06777.58
5.3.130.3630.06077.55
5.3.120.3670.06777.58
5.3.110.3070.07777.59
5.3.100.3670.07077.07
5.3.90.3170.10077.23
5.3.80.3330.08076.97
5.3.70.3570.06076.97
5.3.60.3830.05076.95
5.3.50.3700.06376.90
5.3.40.3570.07376.98
5.3.30.4200.06376.82
5.3.20.3470.08376.75
5.3.10.3300.08376.85
5.3.00.3670.06776.61

preferences:
26.74 ms | 401 KiB | 5 Q