3v4l.org

run code in 300+ PHP versions simultaneously
<? define ('Foo', 1); define ('Bar', 1); class Foo { public function foo() { return "foo"; } } class Bar { public function foo() { return "foo"; } } $a = [Foo, Bar]; $b = new $a[1]; echo $b->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.0110.00416.63
8.3.50.0080.00616.23
8.3.40.0150.00418.77
8.3.30.0120.00318.59
8.3.20.0000.00720.09
8.3.10.0070.00023.70
8.3.00.0050.00319.56
8.2.180.0090.00618.16
8.2.170.0120.00622.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00317.63
8.2.110.0030.00720.94
8.2.100.0120.00017.72
8.2.90.0000.00719.22
8.2.80.0030.00617.97
8.2.70.0040.00417.46
8.2.60.0050.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00921.06
8.2.30.0030.00320.68
8.2.20.0030.00617.62
8.2.10.0020.00517.96
8.2.00.0040.00417.95
8.1.280.0070.00725.92
8.1.270.0140.00023.83
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.42
8.1.230.0090.00320.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.00
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0030.00620.37
8.1.160.0070.00022.00
8.1.150.0030.00318.61
8.1.140.0080.00019.55
8.1.130.0000.00717.61
8.1.120.0040.00417.32
8.1.110.0000.00817.33
8.1.100.0050.00217.20
8.1.90.0070.00017.33
8.1.80.0000.00817.18
8.1.70.0000.00817.32
8.1.60.0000.00717.28
8.1.50.0030.00617.33
8.1.40.0000.00717.35
8.1.30.0030.00617.52
8.1.20.0050.00317.51
8.1.10.0040.00417.33
8.1.00.0030.00517.21
8.0.300.0040.00418.77
8.0.290.0070.00416.63
8.0.280.0000.00718.35
8.0.270.0030.00517.22
8.0.260.0030.00317.18
8.0.250.0000.00716.80
8.0.240.0000.00716.68
8.0.230.0000.00716.80
8.0.220.0070.00016.68
8.0.210.0040.00416.60
8.0.200.0040.00416.72
8.0.190.0000.00816.68
8.0.180.0040.00416.83
8.0.170.0040.00416.73
8.0.160.0000.00716.74
8.0.150.0030.00316.71
8.0.140.0000.00716.66
8.0.130.0000.00613.45
8.0.120.0040.00416.69
8.0.110.0030.00516.79
8.0.100.0020.00516.71
8.0.90.0000.00816.63
8.0.80.0100.00716.73
8.0.70.0080.00016.80
8.0.60.0000.00716.65
8.0.50.0020.00516.62
8.0.30.0120.00617.01
8.0.20.0150.00617.40
8.0.10.0000.00716.71
8.0.00.0100.01116.57
7.4.330.0050.00015.13
7.4.320.0060.00016.41
7.4.300.0030.00316.46
7.4.290.0070.00016.45
7.4.280.0000.00816.46
7.4.270.0030.00316.41
7.4.260.0030.00316.30
7.4.250.0050.00316.43
7.4.240.0060.00116.36
7.4.230.0000.00716.56
7.4.220.0120.00616.27
7.4.210.0060.00916.33
7.4.200.0000.00716.36
7.4.160.0040.01116.23
7.4.150.0080.00817.40
7.4.140.0150.00717.86
7.4.130.0100.01016.43
7.4.120.0090.01116.42
7.4.110.0140.00316.46
7.4.100.0070.01116.52
7.4.90.0100.00716.44
7.4.80.0030.01319.39
7.4.70.0090.00916.31
7.4.60.0100.00716.48
7.4.50.0000.00816.17
7.4.40.0090.00616.33
7.4.30.0040.01816.44
7.4.00.0060.00615.04
7.3.330.0050.00013.30
7.3.320.0030.00313.23
7.3.310.0030.00316.13
7.3.300.0030.00316.16
7.3.290.0030.01116.15
7.3.280.0060.00916.14
7.3.270.0150.00417.40
7.3.260.0150.00316.23
7.3.250.0110.01116.22
7.3.240.0060.01216.19
7.3.230.0090.01016.39
7.3.210.0100.00716.17
7.3.200.0150.00316.10
7.3.190.0030.01716.25
7.3.180.0130.00315.96
7.3.170.0050.01116.27
7.3.160.0060.01316.37
7.3.120.0000.01114.69
7.3.110.0060.00614.89
7.3.100.0030.01014.75
7.3.90.0040.01114.68
7.3.80.0040.01214.70
7.3.70.0070.00814.52
7.3.60.0030.01014.78
7.3.50.0040.01114.74
7.3.40.0140.00314.80
7.3.30.0030.01014.69
7.3.20.0120.00316.56
7.3.10.0030.01016.57
7.3.00.0060.00916.47
7.2.330.0140.00416.52
7.2.320.0120.00616.53
7.2.310.0130.01016.23
7.2.300.0030.01316.31
7.2.290.0070.01616.50
7.2.240.0060.00914.73
7.2.230.0000.01715.10
7.2.220.0060.00914.76
7.2.210.0120.00614.80
7.2.200.0030.01014.87
7.2.190.0000.01314.87
7.2.180.0070.00714.95
7.2.170.0060.00614.90
7.2.160.0120.00314.81
7.2.150.0090.00616.83
7.2.140.0060.00916.62
7.2.130.0040.00816.75
7.2.120.0040.01116.86
7.2.110.0000.00816.88
7.2.100.0060.01216.44
7.2.90.0000.01317.01
7.2.80.0040.00716.96
7.2.70.0070.00716.59
7.2.60.0030.01216.83
7.2.50.0000.01616.75
7.2.40.0070.00716.59
7.2.30.0080.00416.77
7.2.20.0030.01016.78
7.2.10.0000.01216.66
7.2.00.0070.00818.19
7.1.330.0100.00715.66
7.1.320.0060.00915.47
7.1.310.0040.01115.56
7.1.300.0090.00615.80
7.1.290.0030.01315.64
7.1.280.0030.01015.55
7.1.270.0080.00415.83
7.1.260.0060.00915.50
7.1.250.0030.00615.46
7.1.200.0220.00615.63
7.1.100.0060.00318.32
7.1.70.0080.00317.13
7.1.60.0100.01419.50
7.1.50.0000.02216.92
7.1.00.0000.08022.57
7.0.200.0410.00314.93
7.0.100.0070.08320.18
7.0.90.0030.04019.87
7.0.80.0100.06720.03
7.0.70.0200.07020.03
7.0.60.0100.07020.09
7.0.50.0070.06020.32
7.0.40.0070.07720.13
7.0.30.0070.07020.13
7.0.20.0070.09020.08
7.0.10.0030.05320.13
7.0.00.0100.08720.07
5.6.280.0070.03321.00
5.6.250.0030.04720.54
5.6.240.0030.04320.61
5.6.230.0130.08020.72
5.6.220.0030.05320.58
5.6.210.0030.08320.47
5.6.200.0130.08021.00
5.6.190.0070.06721.14
5.6.180.0030.08720.95
5.6.170.0100.08321.17
5.6.160.0170.08021.02
5.6.150.0030.08321.04
5.6.140.0030.08020.95
5.6.130.0030.08321.02
5.6.120.0070.04721.08
5.6.110.0070.07321.13
5.6.100.0070.08021.02
5.6.90.0030.08720.92
5.6.80.0070.06720.42
5.6.70.0030.08020.46
5.6.60.0070.08320.30
5.6.50.0170.06720.33
5.6.40.0030.07720.27
5.6.30.0030.08320.40
5.6.20.0170.06720.41
5.6.10.0100.06320.52
5.6.00.0130.07320.30
5.5.380.0070.06320.39
5.5.370.0130.05320.39
5.5.360.0100.08020.41
5.5.350.0030.04720.45
5.5.340.0070.08020.88
5.5.330.0000.08320.80
5.5.320.0030.08720.78
5.5.310.0100.07720.63
5.5.300.0200.05720.93
5.5.290.0100.08020.89
5.5.280.0200.07320.89
5.5.270.0000.10020.86
5.5.260.0100.07720.91
5.5.250.0130.07320.72
5.5.240.0200.07020.30
5.5.230.0100.07320.25
5.5.220.0100.04320.26
5.5.210.0070.04020.31
5.5.200.0030.08020.11
5.5.190.0100.04320.13
5.5.180.0070.08020.21
5.5.160.0000.05020.21
5.5.150.0100.03320.18
5.5.140.0070.06720.18
5.5.130.0070.07720.22
5.5.120.0100.06320.29
5.5.110.0070.06320.22
5.5.100.0000.07720.13
5.5.90.0070.07320.09
5.5.80.0070.04320.11
5.5.70.0000.04320.06
5.5.60.0070.04020.03
5.5.50.0100.04020.13
5.5.40.0070.04020.05
5.5.30.0130.06720.08
5.5.20.0070.07720.14
5.5.10.0070.03320.11
5.5.00.0070.03720.07
5.4.450.0030.07319.18
5.4.440.0030.08019.37
5.4.430.0130.07019.45
5.4.420.0100.07319.44
5.4.410.0070.04719.22
5.4.400.0170.03318.88
5.4.390.0100.07019.02
5.4.380.0100.07019.04
5.4.370.0130.07019.03
5.4.360.0030.06019.21
5.4.350.0100.04019.18
5.4.340.0170.07018.87
5.4.320.0030.04018.95
5.4.310.0030.04319.03
5.4.300.0030.07719.17
5.4.290.0070.07319.04
5.4.280.0100.04319.12
5.4.270.0100.07318.87
5.4.260.0130.06319.25
5.4.250.0130.07019.04
5.4.240.0100.07018.89
5.4.230.0130.03719.12
5.4.220.0030.07319.20
5.4.210.0070.05718.84
5.4.200.0030.07719.20
5.4.190.0070.06319.11
5.4.180.0100.06319.22
5.4.170.0030.05019.02
5.4.160.0000.04719.00
5.4.150.0030.04019.01
5.4.140.0070.06316.46
5.4.130.0000.03716.46
5.4.120.0030.03316.48
5.4.110.0030.04016.39
5.4.100.0130.02716.45
5.4.90.0030.03316.44
5.4.80.0000.03716.55
5.4.70.0000.03716.55
5.4.60.0000.03716.48
5.4.50.0030.04016.37
5.4.40.0030.03316.49
5.4.30.0070.03716.29
5.4.20.0000.03716.41
5.4.10.0100.03016.26
5.4.00.0030.03015.79

preferences:
58.07 ms | 400 KiB | 5 Q