3v4l.org

run code in 300+ PHP versions simultaneously
<? define ('Foo', 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.70.0060.00918.30
8.3.60.0140.00016.63
8.3.50.0270.00420.98
8.3.40.0070.00718.59
8.3.30.0070.00718.60
8.3.20.0000.00720.09
8.3.10.0000.00723.51
8.3.00.0080.00019.56
8.2.180.0060.00918.17
8.2.170.0080.00822.96
8.2.160.0070.01019.33
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00417.50
8.2.110.0070.00321.09
8.2.100.0100.00317.91
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0030.00521.11
8.2.30.0050.00220.53
8.2.20.0040.00417.48
8.2.10.0000.00718.03
8.2.00.0040.00417.84
8.1.280.0070.00725.92
8.1.270.0090.00623.82
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00621.24
8.1.230.0040.00817.66
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00316.88
8.1.190.0080.00017.10
8.1.180.0030.00618.10
8.1.170.0040.00420.36
8.1.160.0040.00421.89
8.1.150.0070.00018.80
8.1.140.0030.00519.57
8.1.130.0030.00317.58
8.1.120.0000.00717.32
8.1.110.0050.00317.20
8.1.100.0050.00217.30
8.1.90.0000.00717.30
8.1.80.0040.00317.21
8.1.70.0000.00817.27
8.1.60.0040.00417.44
8.1.50.0110.00017.24
8.1.40.0000.00817.27
8.1.30.0040.00417.51
8.1.20.0050.00317.55
8.1.10.0000.00717.43
8.1.00.0070.00017.25
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0000.00717.08
8.0.260.0000.00617.21
8.0.250.0040.00416.71
8.0.240.0030.00316.81
8.0.230.0050.00216.78
8.0.220.0070.00016.65
8.0.210.0000.00716.74
8.0.200.0030.00516.64
8.0.190.0080.00016.77
8.0.180.0000.00816.79
8.0.170.0040.00416.76
8.0.160.0000.00716.71
8.0.150.0030.00316.70
8.0.140.0030.00316.73
8.0.130.0030.00313.42
8.0.120.0000.00816.67
8.0.110.0080.00016.77
8.0.100.0070.00016.69
8.0.90.0030.00616.78
8.0.80.0120.00916.66
8.0.70.0050.00316.64
8.0.60.0030.00316.73
8.0.50.0050.00216.81
8.0.30.0120.00617.21
8.0.20.0160.00817.40
8.0.10.0000.00716.77
8.0.00.0110.01016.54
7.4.330.0030.00315.15
7.4.320.0060.00016.25
7.4.300.0000.00616.27
7.4.290.0050.00216.44
7.4.280.0040.00416.43
7.4.270.0070.00016.43
7.4.260.0030.00316.45
7.4.250.0070.00016.18
7.4.240.0040.00316.34
7.4.230.0030.00316.46
7.4.220.0060.01816.41
7.4.210.0060.00916.32
7.4.200.0050.00216.45
7.4.160.0080.00816.46
7.4.150.0140.00417.40
7.4.140.0130.00517.86
7.4.130.0070.01316.48
7.4.120.0060.01016.41
7.4.110.0100.00716.42
7.4.100.0090.00916.36
7.4.90.0070.01016.36
7.4.80.0130.01219.39
7.4.70.0170.00616.40
7.4.60.0080.00816.37
7.4.50.0080.00016.32
7.4.40.0110.00416.15
7.4.30.0070.01616.15
7.4.00.0100.00314.82
7.3.330.0000.00513.31
7.3.320.0060.00013.30
7.3.310.0030.00315.95
7.3.300.0000.00716.16
7.3.290.0100.00516.19
7.3.280.0100.00916.12
7.3.270.0070.01117.40
7.3.260.0080.01116.29
7.3.240.0060.01216.30
7.3.230.0100.00716.39
7.3.210.0120.00416.46
7.3.200.0080.00816.19
7.3.190.0090.00616.34
7.3.180.0130.00316.28
7.3.170.0150.00616.44
7.3.160.0110.00816.37
7.3.10.0070.00616.78
7.3.00.0000.00916.68
7.2.330.0090.00916.37
7.2.320.0070.01016.63
7.2.310.0060.01016.29
7.2.300.0100.00616.55
7.2.290.0050.01316.14
7.2.130.0120.00316.71
7.2.120.0070.00716.89
7.2.110.0070.00416.98
7.2.100.0060.00916.99
7.2.90.0070.01016.88
7.2.80.0070.00417.10
7.2.70.0100.00416.74
7.2.60.0020.01516.94
7.2.50.0060.00916.66
7.2.40.0000.01016.88
7.2.30.0040.01116.91
7.2.20.0120.00016.82
7.2.10.0030.01316.80
7.2.00.0100.00618.06
7.1.250.0110.00415.88
7.1.200.0070.00315.47
7.1.100.0070.00717.68
7.1.70.0030.00817.09
7.1.60.0130.01019.50
7.1.50.0100.01416.73
7.1.00.0030.07722.33
7.0.200.0190.00714.78
7.0.60.0030.04319.91
7.0.50.0000.09017.84
7.0.40.0070.08320.26
7.0.30.0270.07720.19
7.0.20.0230.05320.38
7.0.10.0070.09020.21
7.0.00.0030.08320.25
5.6.280.0030.03321.09
5.6.210.0030.08020.48
5.6.200.0070.05018.19
5.6.190.0100.04320.39
5.6.180.0400.04020.47
5.6.170.0230.05720.45
5.6.160.0100.08720.46
5.6.150.0000.04318.21
5.6.140.0030.08018.18
5.6.130.0170.06718.16
5.6.120.0100.06721.07
5.6.110.0070.04020.99
5.6.100.0100.06720.98
5.6.90.0070.05020.93
5.6.80.0070.04720.44
5.5.350.0070.07720.45
5.5.340.0000.04318.14
5.5.330.0130.07020.42
5.5.320.4000.04020.38
5.5.310.0300.04720.42
5.5.300.0030.05717.93
5.5.290.0130.05017.96
5.5.280.0030.09020.77
5.5.270.0100.03720.73
5.5.260.0070.08020.80
5.5.250.0070.07320.78
5.5.240.0000.07720.23
5.4.450.0770.05719.50
5.4.440.0830.05719.61
5.4.430.0730.06719.30
5.4.420.0830.05719.47
5.4.410.0830.05019.17
5.4.400.0730.05319.07
5.4.390.0970.05319.26
5.4.380.0770.05019.24
5.4.370.0730.05319.15
5.4.360.0700.05719.29
5.4.350.0700.05719.29
5.4.340.0870.06719.38
5.4.320.0800.05319.01
5.4.310.0900.05019.31
5.4.300.0900.05719.01
5.4.290.0930.04319.07
5.4.280.0770.05319.14
5.4.270.0770.05019.08
5.4.260.0800.04718.97
5.4.250.0830.04719.14
5.4.240.0700.05719.14
5.4.230.0730.05718.99
5.4.220.0830.05019.15
5.4.210.0870.06319.37
5.4.200.0770.04718.97
5.4.190.0800.04719.27
5.4.180.0930.05019.25
5.4.170.0700.05718.86
5.4.160.0800.04718.85
5.4.150.0900.04319.26
5.4.140.0800.05316.51
5.4.130.0800.04316.57
5.4.120.0930.04716.45
5.4.110.0800.06016.63
5.4.100.0830.05716.53
5.4.90.1000.04316.57
5.4.80.0800.05716.55
5.4.70.0270.06316.48
5.4.60.0030.04016.24
5.4.50.0030.04016.33
5.4.40.0230.03716.51
5.4.30.0330.04016.43
5.4.20.0200.07016.43

preferences:
55.91 ms | 401 KiB | 5 Q