3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ITest { public function apfel(): mixed; } class Test implements ITest { public function apfel(): array { return []; } } var_dump((new Test())->apfel());

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.0060.00916.50
8.3.50.0120.00618.03
8.3.40.0170.00719.77
8.3.30.0140.00918.68
8.3.20.0090.00824.13
8.3.10.0090.00924.06
8.3.00.0120.00726.20
8.2.180.0070.00725.92
8.2.170.0160.00718.75
8.2.160.0160.00620.88
8.2.150.0130.00523.41
8.2.140.0100.00723.78
8.2.130.0110.00725.46
8.2.120.0120.00624.82
8.2.110.0120.00824.70
8.2.100.0140.00624.29
8.2.90.0130.00624.22
8.2.80.0110.00724.37
8.2.70.0150.00527.41
8.2.60.0120.00627.55
8.2.50.0120.00527.51
8.2.40.0120.00627.65
8.2.30.0100.00626.39
8.2.20.0100.00627.45
8.2.10.0080.00826.67
8.2.00.0090.00625.52
8.1.280.0070.01425.92
8.1.270.0080.00424.08
8.1.260.0080.00625.81
8.1.250.0060.00625.94
8.1.240.0100.00624.63
8.1.230.0090.00624.45
8.1.220.0080.00624.28
8.1.210.0110.00524.29
8.1.200.0100.00627.37
8.1.190.0110.00627.34
8.1.180.0110.00527.39
8.1.170.0090.00727.50
8.1.160.0090.00627.46
8.1.150.0080.00527.44
8.1.140.0080.00526.51
8.1.130.0080.00525.00
8.1.120.0090.00424.98
8.1.110.0080.00524.66
8.1.100.0080.00524.78
8.1.90.0090.00524.08
8.1.80.0090.00523.70
8.1.70.0080.00523.61
8.1.60.0090.00523.44
8.1.50.0090.00522.70
8.1.40.0090.00522.63
8.1.30.0100.00423.31
8.1.20.0090.00623.00
8.1.10.0100.00523.02
8.1.00.0100.00522.98
8.0.300.0100.00424.13
8.0.290.0120.00527.17
8.0.280.0120.00727.27
8.0.270.0080.00526.24
8.0.260.0110.00424.69
8.0.250.0080.00524.71
8.0.240.0120.00424.36
8.0.230.0090.00524.53
8.0.220.0080.00523.71
8.0.210.0100.00423.28
8.0.200.0090.00523.32
8.0.190.0100.00523.15
8.0.180.0080.00423.09
8.0.170.0100.00522.89
8.0.160.0070.00622.82
8.0.150.0110.00522.61
8.0.140.0130.00422.64
8.0.130.0110.00522.47
8.0.120.0100.00522.65
8.0.110.0080.00522.07
8.0.100.0100.00422.40
8.0.90.0090.00622.42
8.0.80.0090.00422.42
8.0.70.0070.00522.42
8.0.60.0110.00522.46
8.0.50.0120.00422.41
8.0.30.0080.00422.42
8.0.20.0080.00522.47
8.0.10.0090.00422.52
8.0.00.0090.00422.74
7.4.330.0110.00323.25
7.4.320.0150.00424.15
7.4.300.0140.00423.05
7.4.290.0130.00522.86
7.4.280.0150.00422.59
7.4.270.0140.00522.40
7.4.260.0160.00522.40
7.4.250.0140.00622.40
7.4.240.0140.00621.86
7.4.230.0150.00522.21
7.4.220.0140.00522.21
7.4.210.0140.00422.22
7.4.200.0140.00422.20
7.4.190.0150.00422.26
7.4.180.0130.00422.28
7.4.160.0130.00522.25
7.4.150.0130.00522.19
7.4.140.0140.00422.17
7.4.130.0140.00522.12
7.4.120.0130.00422.18
7.4.110.0160.00422.11
7.4.100.0150.00422.22
7.4.90.0150.00522.13
7.4.80.0150.00422.11
7.4.70.0150.00522.12
7.4.60.0150.00522.13
7.4.50.0120.00522.07
7.4.40.0140.00522.11
7.4.30.0140.00522.15
7.4.20.0150.00522.09
7.4.10.0150.00522.13
7.4.00.0150.00422.15
7.3.330.0160.00422.20
7.3.320.0160.00422.14
7.3.310.0150.00422.05
7.3.300.0140.00322.16
7.3.290.0150.00522.02
7.3.280.0150.00422.07
7.3.270.0150.00422.05
7.3.260.0150.00522.10
7.3.250.0160.00422.06
7.3.240.0140.00522.07
7.3.230.0150.00422.03
7.3.220.0160.00422.06
7.3.210.0160.00522.03
7.3.200.0160.00522.02
7.3.190.0160.00522.06
7.3.180.0160.00622.04
7.3.170.0140.00622.09
7.3.160.0170.00322.04
7.3.150.0160.00522.05
7.3.140.0150.00622.04
7.3.130.0150.00622.06
7.3.120.0150.00422.03
7.3.110.0150.00522.05
7.3.100.0150.00422.01
7.3.90.0140.00522.17
7.3.80.0150.00522.03
7.3.70.0150.00422.13
7.3.60.0150.00522.14
7.3.50.0160.00522.11
7.3.40.0140.00522.11
7.3.30.0150.00422.11
7.3.20.0170.00422.96
7.3.10.0150.00522.96
7.3.00.0160.00522.94

preferences:
41.98 ms | 401 KiB | 5 Q