3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a; public $b; } $foos = []; for ($i = 10000; $i--;) { $foo = new Foo; $foo->a = 1; $foo->b = 2; $foo[] = $foo; }

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.0070.01416.63
8.3.50.0040.01116.60
8.3.40.0120.00319.09
8.3.30.0040.01518.98
8.3.20.0070.00020.26
8.3.10.0030.00523.69
8.3.00.0060.00321.68
8.2.180.0040.01516.88
8.2.170.0090.00922.96
8.2.160.0130.00720.52
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0070.00322.25
8.2.100.0070.00419.58
8.2.90.0080.00018.16
8.2.80.0050.00317.97
8.2.70.0060.00317.93
8.2.60.0030.00618.03
8.2.50.0000.00818.10
8.2.40.0080.00019.21
8.2.30.0000.00820.68
8.2.20.0000.00817.63
8.2.10.0040.00418.06
8.2.00.0050.00318.05
8.1.280.0100.01025.92
8.1.270.0100.01022.10
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0000.01122.71
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0080.00017.10
8.1.180.0030.00618.10
8.1.170.0000.00818.62
8.1.160.0040.00418.88
8.1.150.0070.00018.70
8.1.140.0030.00519.63
8.1.130.0090.00020.14
8.1.120.0000.00717.30
8.1.110.0020.00517.41
8.1.100.0020.00517.43
8.1.90.0070.00317.43
8.1.80.0030.00517.38
8.1.70.0040.00317.31
8.1.60.0080.00417.56
8.1.50.0000.00817.43
8.1.40.0100.00017.51
8.1.30.0000.00817.73
8.1.20.0040.00717.65
8.1.10.0000.00717.50
8.1.00.0020.00517.43
8.0.300.0070.00021.27
8.0.290.0000.00716.58
8.0.280.0090.00018.30
8.0.270.0070.00017.11
8.0.260.0030.00318.39
8.0.250.0000.00716.84
8.0.240.0050.00316.98
8.0.230.0030.00316.96
8.0.220.0030.00516.89
8.0.210.0070.00016.88
8.0.200.0070.00017.02
8.0.190.0000.00716.97
8.0.180.0000.00916.93
8.0.170.0050.00316.79
8.0.160.0040.00416.89
8.0.150.0040.00316.78
8.0.140.0030.00316.86
8.0.130.0030.00313.38
8.0.120.0040.00416.95
8.0.110.0000.00716.78
8.0.100.0040.00416.94
8.0.90.0000.00716.84
8.0.80.0070.00716.89
8.0.70.0030.00516.95
8.0.60.0080.00016.77
8.0.50.0030.00516.96
8.0.30.0050.01317.03
8.0.20.0100.00817.40
8.0.10.0000.00716.93
8.0.00.0090.01016.80
7.4.330.0060.00016.76
7.4.320.0030.00316.40
7.4.300.0030.00316.43
7.4.290.0000.00716.56
7.4.280.0000.00716.47
7.4.270.0000.00716.44
7.4.260.0000.00816.42
7.4.250.0060.00316.53
7.4.240.0000.00716.58
7.4.230.0000.00716.59
7.4.220.0100.00716.55
7.4.210.0050.01116.60
7.4.200.0000.00816.72
7.4.160.0110.00816.66
7.4.150.0090.00917.40
7.4.140.0130.00417.86
7.4.130.0070.01416.57
7.4.120.0070.01016.48
7.4.110.0160.00016.59
7.4.100.0100.01316.52
7.4.90.0080.00816.49
7.4.80.0100.00719.39
7.4.70.0070.01116.53
7.4.60.0060.01016.50
7.4.50.0030.01116.34
7.4.40.0070.01016.36
7.4.30.0140.00316.48
7.4.00.0070.00814.88
7.3.330.0000.00713.23
7.3.320.0050.00013.29
7.3.310.0000.00716.35
7.3.300.0000.00716.34
7.3.290.0070.00016.31
7.3.280.0090.01016.32
7.3.270.0140.00417.40
7.3.260.0150.00616.59
7.3.250.0120.00816.36
7.3.240.0080.01016.46
7.3.230.0110.00616.39
7.3.210.0170.00016.44
7.3.200.0060.01519.39
7.3.190.0030.01316.45
7.3.180.0000.01616.42
7.3.170.0080.01216.48
7.3.160.0130.00316.48
7.3.120.0030.01415.03
7.3.110.0050.01014.75
7.3.100.0030.01014.79
7.3.90.0120.00314.75
7.3.80.0030.00914.80
7.3.70.0040.00414.75
7.3.60.0060.00314.68
7.3.50.0000.00914.80
7.3.40.0030.01414.64
7.3.30.0090.00614.88
7.3.20.0070.01016.75
7.3.10.0070.00716.61
7.3.00.0060.00316.77
7.2.330.0100.00716.60
7.2.320.0160.00316.84
7.2.310.0070.01016.44
7.2.300.0120.00616.44
7.2.290.0130.00316.62
7.2.250.0070.01015.01
7.2.240.0130.00714.73
7.2.230.0030.01414.91
7.2.220.0000.00914.60
7.2.210.0030.01014.79
7.2.200.0100.00314.95
7.2.190.0070.00714.96
7.2.180.0030.01014.69
7.2.170.0030.00715.10
7.2.60.0060.00916.85
7.2.00.0030.01219.34
7.1.330.0110.00315.71
7.1.320.0110.00415.48
7.1.310.0030.01115.80
7.1.300.0030.01015.69
7.1.290.0030.01515.79
7.1.280.0000.00915.81
7.1.270.0070.00715.48
7.1.260.0060.00315.50
7.1.200.0120.00015.77
7.1.100.0000.01318.16
7.1.70.0000.00816.89
7.1.60.0090.01519.40
7.1.50.0120.00916.82
7.1.00.0130.06322.51
7.0.200.0630.00714.77
7.0.60.0330.07019.80
7.0.50.0030.04017.86
7.0.40.0100.05020.23
7.0.30.0400.06320.10
7.0.20.0130.05020.05
7.0.10.0100.08720.30
7.0.00.0000.04320.24
5.6.210.0000.04320.53
5.6.200.0130.07318.29
5.6.190.0030.06720.64
5.6.180.0370.06720.45
5.6.170.0470.07320.47
5.6.160.0070.07320.46
5.6.150.0100.07718.21
5.6.140.0070.08318.25
5.6.130.0130.08318.23
5.6.120.0100.08320.98
5.6.110.0070.08720.97
5.6.100.0100.08021.14
5.6.90.0170.07720.97
5.6.80.0070.09020.53
5.5.350.0230.07320.39
5.5.340.0030.08318.08
5.5.330.0030.04320.56
5.5.320.0200.07320.27
5.5.310.0470.06320.41
5.5.300.0070.03717.96
5.5.290.0030.05718.08
5.5.280.0100.04320.87
5.5.270.0070.06720.86
5.5.260.0000.05720.81
5.5.250.0200.07020.71
5.5.240.4230.03720.27

preferences:
61.7 ms | 401 KiB | 5 Q