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.60.0110.00316.63
8.3.50.0000.01416.03
8.3.40.0040.01118.67
8.3.30.0060.00818.53
8.3.20.0070.00020.21
8.3.10.0040.00423.65
8.3.00.0070.00019.68
8.2.180.0120.00318.16
8.2.170.0170.00322.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0040.00722.30
8.2.100.0080.00417.93
8.2.90.0070.00018.82
8.2.80.0000.00817.97
8.2.70.0090.00017.38
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0040.00421.19
8.2.30.0000.00720.48
8.2.20.0060.00317.42
8.2.10.0070.00017.80
8.2.00.0000.00817.97
8.1.280.0110.00425.92
8.1.270.0040.01123.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.39
8.1.230.0090.00317.66
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0040.00420.37
8.1.160.0040.00421.92
8.1.150.0040.00418.71
8.1.140.0000.00819.54
8.1.130.0070.00017.46
8.1.120.0040.00417.29
8.1.110.0040.00417.19
8.1.100.0030.00517.25
8.1.90.0050.00217.21
8.1.80.0040.00417.14
8.1.70.0070.00017.36
8.1.60.0070.00017.49
8.1.50.0110.00017.31
8.1.40.0000.00717.39
8.1.30.0030.00617.46
8.1.20.0000.00817.58
8.1.10.0000.00717.42
8.1.00.0000.00717.25
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.28
8.0.270.0030.00317.16
8.0.260.0030.00317.05
8.0.250.0070.00016.77
8.0.240.0000.00616.73
8.0.230.0030.00316.71
8.0.220.0030.00316.79
8.0.210.0080.00016.75
8.0.200.0040.00416.77
8.0.190.0000.00716.71
8.0.180.0040.00416.76
8.0.170.0000.00716.75
8.0.160.0040.00416.77
8.0.150.0070.00016.75
8.0.140.0070.00016.77
8.0.130.0000.00613.39
8.0.120.0080.00016.72
8.0.110.0080.00016.71
8.0.100.0070.00016.80
8.0.90.0030.00616.70
8.0.80.0110.00716.79
8.0.70.0000.00716.80
8.0.60.0000.00816.77
8.0.50.0040.00416.71
8.0.30.0070.01016.95
8.0.20.0080.01017.40
8.0.10.0030.00516.85
8.0.00.0100.01016.63
7.4.330.0000.00615.08
7.4.320.0000.00616.44
7.4.300.0030.00316.25
7.4.290.0030.00316.27
7.4.280.0000.00716.46
7.4.270.0030.00316.32
7.4.260.0000.00716.31
7.4.250.0050.00316.23
7.4.240.0020.00516.37
7.4.230.0030.00316.41
7.4.220.0090.01016.30
7.4.210.0030.01416.55
7.4.200.0000.00816.36
7.4.160.0090.00616.55
7.4.150.0070.01017.40
7.4.140.0080.00917.86
7.4.130.0060.01116.33
7.4.120.0050.01216.31
7.4.110.0090.00916.34
7.4.100.0120.00616.52
7.4.90.0130.00916.38
7.4.80.0090.00919.39
7.4.70.0120.00616.40
7.4.60.0040.01116.48
7.4.50.0000.00816.08
7.4.40.0060.01016.58
7.4.30.0130.00916.43
7.4.00.0050.01014.72
7.3.330.0030.00313.45
7.3.320.0000.00513.41
7.3.310.0040.00416.20
7.3.300.0030.00315.96
7.3.290.0050.00916.16
7.3.280.0110.00616.15
7.3.270.0030.02017.40
7.3.260.0120.00616.12
7.3.250.0090.00816.29
7.3.240.0100.00616.10
7.3.230.0100.00316.39
7.3.210.0030.01616.13
7.3.200.0110.01116.38
7.3.190.0120.00616.46
7.3.180.0030.01216.34
7.3.170.0100.01016.27
7.3.160.0090.00916.32
7.3.120.0060.01315.01
7.3.110.0070.01114.50
7.3.100.0000.01714.68
7.3.90.0000.01014.88
7.3.80.0000.01014.86
7.3.70.0030.00614.48
7.3.60.0090.00014.67
7.3.50.0070.00714.47
7.3.40.0030.01014.62
7.3.30.0060.00314.81
7.3.20.0080.00416.65
7.3.10.0070.00416.32
7.3.00.0040.00816.50
7.2.330.0150.00316.34
7.2.320.0100.00716.40
7.2.310.0090.00616.24
7.2.300.0130.00316.54
7.2.290.0080.01416.43
7.2.250.0100.01015.04
7.2.240.0030.01415.05
7.2.230.0000.01714.87
7.2.220.0060.00614.99
7.2.210.0030.00714.76
7.2.200.0040.00714.52
7.2.190.0030.01014.60
7.2.180.0040.00414.83
7.2.170.0090.00614.53
7.2.60.0000.01016.93
7.2.00.0140.00719.11
7.1.330.0060.00915.71
7.1.320.0070.00715.52
7.1.310.0060.00615.75
7.1.300.0060.00615.72
7.1.290.0070.00715.51
7.1.280.0070.00315.66
7.1.270.0120.00015.39
7.1.260.0000.00815.54
7.1.200.0220.00315.42
7.1.100.0090.00017.72
7.1.70.0000.00817.23
7.1.60.0150.00619.50
7.1.50.0070.01416.72
7.1.00.0030.07722.43
7.0.200.0190.00314.39
7.0.60.0100.07720.00
7.0.50.0030.08017.85
7.0.40.0100.05320.10
7.0.30.0170.05020.26
7.0.20.0300.05020.19
7.0.10.0070.05020.15
7.0.00.0030.07320.12
5.6.280.0030.03321.10
5.6.210.0000.07720.50
5.6.200.0070.05318.16
5.6.190.0030.04320.46
5.6.180.0400.07320.64
5.6.170.0230.05320.56
5.6.160.0100.08020.43
5.6.150.0170.07018.17
5.6.140.0000.05018.18
5.6.130.0030.06318.18
5.6.120.0130.07720.98
5.6.110.0200.05720.98
5.6.100.0070.05020.93
5.6.90.0000.04321.02
5.6.80.0100.07320.41
5.5.350.0070.07320.47
5.5.340.0200.04318.07
5.5.330.0130.04320.36
5.5.320.3130.04320.27
5.5.310.0200.04320.32
5.5.300.0100.07717.98
5.5.290.0170.04717.97
5.5.280.0030.04720.90
5.5.270.0070.04720.75
5.5.260.0130.07020.68
5.5.250.0000.04720.55
5.5.240.0070.07720.07
5.4.450.0770.05719.34
5.4.440.0870.05019.54
5.4.430.0800.05719.58
5.4.420.0730.06019.55
5.4.410.0770.06019.45
5.4.400.0770.05019.15
5.4.390.0800.05318.88
5.4.380.0800.04719.14
5.4.370.0830.04719.01
5.4.360.0870.05319.26
5.4.350.0770.05719.15
5.4.340.0830.06319.12
5.4.320.0800.05019.26
5.4.310.0800.05019.28
5.4.300.0770.04718.98
5.4.290.0670.06019.14
5.4.280.0930.06318.98
5.4.270.0800.06018.83
5.4.260.0700.06019.25
5.4.250.0670.05718.86
5.4.240.0830.04318.97
5.4.230.0730.05019.27
5.4.220.0770.05319.14
5.4.210.0830.05719.12
5.4.200.0770.05319.27
5.4.190.0800.05319.21
5.4.180.0870.04719.27
5.4.170.0730.05318.83
5.4.160.0800.05719.28
5.4.150.0900.07018.96
5.4.140.0770.05716.47
5.4.130.0600.06316.55
5.4.120.0730.05016.78
5.4.110.0800.05316.49
5.4.100.0830.05716.65
5.4.90.0900.06716.65
5.4.80.0830.05716.25
5.4.70.0200.05316.57
5.4.60.0070.06716.39
5.4.50.0000.07716.23
5.4.40.0270.06716.42
5.4.30.0230.07316.42
5.4.20.0100.05016.42

preferences:
58.85 ms | 400 KiB | 5 Q