3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter = 2000; gc_enable(); while($counter--) { $obj = new stdClass; $obj->obj = $obj; $obj->string = str_repeat(1, 1024 * 10); gc_collect_cycles(); }

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.60.0100.01016.25
8.3.50.0110.00921.87
8.3.40.0040.01218.60
8.3.30.0040.01119.08
8.3.20.0080.00020.29
8.3.10.0030.00523.58
8.3.00.0040.00422.46
8.2.180.0130.00616.50
8.2.170.0060.00922.96
8.2.160.0180.00420.27
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0150.00026.16
8.2.120.0030.00622.11
8.2.110.0100.00021.99
8.2.100.0120.00017.85
8.2.90.0030.00619.09
8.2.80.0030.00617.97
8.2.70.0030.00617.48
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0060.00318.22
8.2.30.0030.00517.91
8.2.20.0090.00017.63
8.2.10.0040.00417.71
8.2.00.0000.00817.70
8.1.280.0150.00725.92
8.1.270.0040.00422.09
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.97
8.1.230.0080.00319.05
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0030.00617.53
8.1.180.0030.00618.10
8.1.170.0040.00418.50
8.1.160.0040.00421.95
8.1.150.0050.00518.64
8.1.140.0000.00817.45
8.1.130.0000.00817.80
8.1.120.0030.00517.44
8.1.110.0050.00517.41
8.1.100.0080.00017.40
8.1.90.0040.00417.41
8.1.80.0000.00717.41
8.1.70.0040.00417.38
8.1.60.0070.00317.43
8.1.50.0050.00517.37
8.1.40.0000.00917.47
8.1.30.0090.00017.56
8.1.20.0060.00317.57
8.1.10.0030.00517.57
8.1.00.0050.00317.54
8.0.300.0050.00318.77
8.0.290.0050.00317.18
8.0.280.0030.00618.41
8.0.270.0040.00417.20
8.0.260.0040.00416.71
8.0.250.0000.00716.79
8.0.240.0040.00416.78
8.0.230.0000.00816.94
8.0.220.0000.00716.87
8.0.210.0070.00016.84
8.0.200.0040.00416.82
8.0.190.0030.00616.78
8.0.180.0040.00416.87
8.0.170.0040.00416.80
8.0.160.0000.00816.79
8.0.150.0000.00816.78
8.0.140.0030.00516.71
8.0.130.0000.00613.29
8.0.120.0040.00416.85
8.0.110.0030.00516.71
8.0.100.0080.00016.72
8.0.90.0080.00016.84
8.0.80.0060.01016.77
8.0.70.0000.00816.95
8.0.60.0030.00516.73
8.0.50.0040.00416.84
8.0.30.0110.00917.05
8.0.20.0070.01317.40
8.0.10.0030.00516.77
8.0.00.0130.00816.71
7.4.330.0000.00615.00
7.4.320.0040.00416.57
7.4.300.0040.00416.53
7.4.290.0000.00716.43
7.4.280.0040.00416.45
7.4.270.0050.00316.57
7.4.260.0020.00516.49
7.4.250.0050.00316.57
7.4.240.0050.00316.49
7.4.230.0000.00816.66
7.4.220.0030.01616.36
7.4.210.0090.00916.41
7.4.200.0030.00516.60
7.4.190.0000.00816.42
7.4.160.0070.01016.27
7.4.150.0110.01117.40
7.4.140.0100.00917.86
7.4.130.0110.00716.63
7.4.120.0110.00916.56
7.4.110.0120.00916.24
7.4.100.0120.00616.27
7.4.90.0130.01016.41
7.4.80.0090.00919.39
7.4.70.0140.00616.36
7.4.60.0060.01016.62
7.4.50.0040.00416.42
7.4.40.0100.00722.77
7.4.30.0120.00616.45
7.4.00.0150.00315.13
7.3.330.0000.00713.12
7.3.320.0000.00713.03
7.3.310.0070.00016.38
7.3.300.0000.00816.27
7.3.290.0060.01516.27
7.3.280.0100.01316.29
7.3.270.0040.01417.40
7.3.260.0120.00916.40
7.3.250.0070.01116.51
7.3.240.0160.00616.56
7.3.230.0070.01016.48
7.3.210.0100.01416.38
7.3.200.0070.01019.39
7.3.190.0070.01416.63
7.3.180.0070.01016.59
7.3.170.0120.01216.50
7.3.160.0150.00916.30
7.3.120.0040.01214.83
7.2.330.0120.00616.62
7.2.320.0060.01516.39
7.2.310.0100.00916.64
7.2.300.0120.00916.34
7.2.290.0110.00716.32
7.1.70.0000.00817.25
7.1.60.0100.00719.29
7.1.50.0070.02016.95
7.1.00.0000.08322.36
7.0.200.0080.00316.77
7.0.140.0000.07722.13
7.0.100.0030.05720.01
7.0.90.0070.08019.88
7.0.80.0130.04319.92
7.0.70.0030.08719.85
7.0.60.0100.07719.88
7.0.50.0130.07720.26
7.0.40.0100.07720.01
7.0.30.0100.08020.08
7.0.20.0070.07720.09
7.0.10.0130.07020.09
7.0.00.0070.08320.04
5.6.280.0100.07020.86
5.6.250.0070.05020.72
5.6.240.0070.09320.60
5.6.230.0100.08020.56
5.6.220.0100.08320.66
5.6.210.0100.08720.68
5.6.200.0130.08321.11
5.6.190.0200.09020.93
5.6.180.0030.08321.03
5.6.170.0070.05721.04
5.6.160.0100.08021.09
5.6.150.0200.06721.03
5.6.140.0130.07721.04
5.6.130.0100.09021.08
5.6.120.0130.08020.93
5.6.110.0170.07720.93
5.6.100.0030.10021.12
5.6.90.0270.06720.97
5.6.80.0270.04020.49
5.6.70.0200.06320.47
5.6.60.0070.07720.32
5.6.50.0170.08020.40
5.6.40.0030.08020.49
5.6.30.0170.07020.30
5.6.20.0130.07720.38
5.6.10.0130.06320.41
5.6.00.0100.07320.44
5.5.380.0130.06720.39
5.5.370.0100.07320.41
5.5.360.0130.07720.33
5.5.350.0000.07720.38
5.5.340.0170.07720.92
5.5.330.0070.08720.83
5.5.320.0100.08020.89
5.5.310.0130.07320.92
5.5.300.0170.07020.87
5.5.290.0070.08020.83
5.5.280.0000.08320.88
5.5.270.0070.07320.75
5.5.260.0070.08720.78
5.5.250.0030.09020.57
5.5.240.0170.06720.22
5.5.230.0070.08020.27
5.5.220.0070.08020.25
5.5.210.0100.08020.19
5.5.200.0100.06020.14
5.5.190.0030.04720.25
5.5.180.0070.05020.12
5.5.160.0100.06020.25
5.5.150.0030.05720.21
5.5.140.0070.08020.23
5.5.130.0070.08320.20
5.5.120.0130.04020.23
5.5.110.0000.09020.13
5.5.100.0070.07020.07
5.5.90.0100.08020.09
5.5.80.0030.08320.00
5.5.70.0100.08020.05
5.5.60.0000.07320.11
5.5.50.0130.07020.15
5.5.40.0070.05020.14
5.5.30.0070.07720.07
5.5.20.0170.07020.10
5.5.10.0170.07320.03
5.5.00.0100.08020.07
5.4.450.0070.06319.23
5.4.440.0130.07719.45
5.4.430.0070.08019.13
5.4.420.0070.04719.11
5.4.410.0070.07719.26
5.4.400.0030.08019.12
5.4.390.0170.06318.79
5.4.380.0030.08319.12
5.4.370.0130.07318.96
5.4.360.0030.08318.79
5.4.350.0000.09719.05
5.4.340.0130.07019.25
5.4.320.0100.06018.81
5.4.310.0100.07019.10
5.4.300.0130.07719.07
5.4.290.0070.07318.96
5.4.280.0000.08018.98
5.4.270.0100.04019.02
5.4.260.0000.07318.81
5.4.250.0100.08319.02
5.4.240.0130.06018.80
5.4.230.0070.07319.02
5.4.220.0100.04318.77
5.4.210.0030.05318.78
5.4.200.0030.08319.09
5.4.190.0030.06719.13
5.4.180.0130.07319.03
5.4.170.0070.05318.77
5.4.160.0130.06319.03
5.4.150.0100.07719.01
5.4.140.0070.07716.29
5.4.130.0170.05016.39
5.4.120.0130.06716.28
5.4.110.0070.08016.26
5.4.100.0100.04016.23
5.4.90.0130.07316.29
5.4.80.0070.07316.42
5.4.70.0000.07316.24
5.4.60.0030.07316.36
5.4.50.0100.07316.23
5.4.40.0070.07716.39
5.4.30.0130.07316.34
5.4.20.0100.06316.35
5.4.10.0100.07316.30
5.4.00.0000.07315.83
5.3.290.0130.07014.61
5.3.280.0030.07014.60
5.3.270.0100.04314.57
5.3.260.0170.05314.60
5.3.250.0070.07714.46
5.3.240.0070.08014.56
5.3.230.0100.06014.55
5.3.220.0070.08314.59
5.3.210.0100.04714.59
5.3.200.0070.08014.54
5.3.190.0030.07314.53
5.3.180.0030.07314.57
5.3.170.0130.06714.44
5.3.160.0100.07314.49
5.3.150.0070.07714.54
5.3.140.0070.04714.40
5.3.130.0130.07314.55
5.3.120.0130.07314.51
5.3.110.0070.07714.52
5.3.100.0070.06013.96
5.3.90.0070.07013.99
5.3.80.0030.07713.80
5.3.70.0070.07714.02
5.3.60.0030.04713.98
5.3.50.0100.07313.95
5.3.40.0130.06713.82
5.3.30.0030.07713.86
5.3.20.0200.05734.04
5.3.10.0130.07734.06
5.3.00.0200.05034.04
5.2.170.0000.06311.12
5.2.160.0130.05311.00
5.2.150.0100.05711.18
5.2.140.0000.03010.97
5.2.130.0070.05711.14
5.2.120.0070.04310.95
5.2.110.0000.03011.09
5.2.100.0070.05711.02
5.2.90.0030.05711.12
5.2.80.0000.04011.05
5.2.70.0130.05711.09
5.2.60.0200.03311.09
5.2.50.0070.05710.86
5.2.40.0030.06311.02
5.2.30.0130.03711.02
5.2.20.0000.04310.80
5.2.10.0030.03310.78
5.2.00.0030.02710.72
5.1.60.0030.02310.48
5.1.50.0030.02710.48
5.1.40.0000.03010.48
5.1.30.0170.02010.48
5.1.20.0030.02710.48
5.1.10.0030.02310.48
5.1.00.0000.03010.48
5.0.50.0070.01710.48
5.0.40.0000.02310.48
5.0.30.0030.03310.48
5.0.20.0000.02010.48
5.0.10.0070.01710.48
5.0.00.0000.03710.48
4.4.90.0030.03710.48
4.4.80.0000.03710.48
4.4.70.0000.03010.48
4.4.60.0000.02310.48
4.4.50.0000.01710.48
4.4.40.0000.02710.48
4.4.30.0000.01710.48
4.4.20.0030.01710.48
4.4.10.0000.02010.48
4.4.00.0000.02710.48
4.3.110.0030.01310.48
4.3.100.0000.01310.48
4.3.90.0000.01710.48
4.3.80.0030.02010.48
4.3.70.0000.02010.48
4.3.60.0000.02010.48
4.3.50.0070.02010.48
4.3.40.0000.02310.48
4.3.30.0030.02010.48
4.3.20.0000.02310.48
4.3.10.0030.02710.48
4.3.00.0000.02010.48

preferences:
41.36 ms | 401 KiB | 5 Q