3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { } interface B extends A { } class C { public function test(A $a) { } } class D extends C { public function test(B $a) { } }

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.00716.75
8.3.50.0110.00418.25
8.3.40.0030.01318.45
8.3.30.0080.00618.54
8.3.20.0030.00520.72
8.3.10.0000.00821.64
8.3.00.0030.00519.13
8.2.180.0110.01118.50
8.2.170.0140.00022.96
8.2.160.0100.01020.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.82
8.2.120.0000.00726.35
8.2.110.0030.00622.25
8.2.100.0100.00317.66
8.2.90.0040.00417.63
8.2.80.0060.00317.97
8.2.70.0030.00617.80
8.2.60.0000.00917.93
8.2.50.0090.00018.10
8.2.40.0040.00420.59
8.2.30.0040.00419.18
8.2.20.0000.00817.86
8.2.10.0000.00817.98
8.2.00.0040.00417.67
8.1.280.0170.00325.92
8.1.270.0070.00020.29
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0030.00623.84
8.1.230.0110.00018.98
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0050.00320.80
8.1.160.0040.00418.67
8.1.150.0080.00022.05
8.1.140.0040.00419.44
8.1.130.0000.00618.94
8.1.120.0040.00417.32
8.1.110.0000.00717.34
8.1.100.0030.00517.40
8.1.90.0000.00717.37
8.1.80.0000.00717.27
8.1.70.0070.00017.25
8.1.60.0040.00417.51
8.1.50.0090.00017.50
8.1.40.0080.00017.35
8.1.30.0040.00417.56
8.1.20.0080.00017.54
8.1.10.0040.00417.42
8.1.00.0000.00717.32
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0000.00717.20
8.0.260.0030.00317.09
8.0.250.0030.00316.90
8.0.240.0030.00316.86
8.0.230.0030.00317.00
8.0.220.0030.00516.90
8.0.210.0040.00416.86
8.0.200.0040.00416.87
8.0.190.0040.00416.81
8.0.180.0000.00716.92
8.0.170.0000.00716.88
8.0.160.0040.00416.88
8.0.150.0040.00416.86
8.0.140.0000.00716.75
8.0.130.0000.00513.24
8.0.120.0080.00016.83
8.0.110.0050.00316.99
8.0.100.0070.00016.89
8.0.90.0000.00716.95
8.0.80.0070.00816.79
8.0.70.0030.00516.91
8.0.60.0070.00016.89
8.0.50.0000.00716.75
8.0.30.0150.00516.93
8.0.20.0130.01117.40
8.0.10.0080.00017.12
8.0.00.0030.01316.55
7.4.330.0000.00515.55
7.4.320.0060.00016.43
7.4.300.0030.00316.54
7.4.290.0070.00016.52
7.4.280.0060.00316.54
7.4.270.0000.00716.43
7.4.260.0000.00816.43
7.4.250.0040.00416.39
7.4.240.0080.00016.54
7.4.230.0030.00516.46
7.4.220.0090.00916.64
7.4.210.0120.00916.46
7.4.200.0070.00016.27
7.4.160.0120.00416.41
7.4.150.0110.00617.40
7.4.140.0090.01117.86
7.4.130.0160.01516.35
7.4.120.0110.00816.57
7.4.110.0160.00916.46
7.4.100.0120.00916.48
7.4.90.0090.00916.55
7.4.80.0110.00519.39
7.4.70.0060.01216.41
7.4.60.0070.00716.59
7.4.50.0120.00316.38
7.4.40.0040.01216.29
7.4.30.0030.01316.60
7.4.00.0100.00715.06
7.3.330.0000.00513.08
7.3.320.0000.00613.19
7.3.310.0030.00416.07
7.3.300.0050.00216.15
7.3.290.0050.01016.18
7.3.280.0080.01016.25
7.3.270.0200.00317.40
7.3.260.0100.00816.27
7.3.250.0070.01116.40
7.3.240.0170.00516.36
7.3.230.0090.00616.28
7.3.210.0060.00916.53
7.3.200.0060.01316.14
7.3.190.0110.00616.41
7.3.180.0120.00316.29
7.3.170.0120.00416.32
7.3.160.0100.00716.26
7.2.330.0150.00416.50
7.2.320.0160.00316.35
7.2.310.0140.00316.41
7.2.300.0110.01116.45
7.2.290.0120.00616.66
7.2.60.0080.00816.55
7.2.00.0110.01519.35
7.1.200.0040.00715.39
7.1.100.0070.01017.86
7.1.70.0000.00717.04
7.1.60.0030.00817.14
7.1.50.0150.00616.52
7.1.00.0100.07022.48
7.0.200.0100.00716.56
7.0.140.0070.07022.12
7.0.130.0100.05322.12
7.0.120.0170.04722.11
7.0.110.0130.05722.01
7.0.100.0070.06022.06
7.0.90.0170.06322.13
7.0.80.0030.06022.09
7.0.70.0000.06322.04
7.0.60.0030.05721.95
7.0.50.0130.05322.11
7.0.40.0030.06022.12
7.0.30.0000.06722.13
7.0.20.0130.05321.96
7.0.10.0070.06322.16
7.0.00.0130.07022.03
5.6.290.0000.06020.71
5.6.280.0100.05721.09
5.6.270.0100.05321.10
5.6.260.0070.06020.91
5.6.250.0230.04321.09
5.6.240.0200.04720.99
5.6.230.0030.06020.84
5.6.220.0100.05320.80
5.6.210.0070.06321.10
5.6.200.0070.07020.86
5.6.190.0030.06021.00
5.6.180.0100.06021.05
5.6.170.0070.05321.05
5.6.160.0070.05721.02
5.6.150.0030.09321.00
5.6.140.0100.08720.74
5.6.130.0100.05320.86
5.6.120.0030.06320.88
5.6.110.0030.09021.05
5.6.100.0000.06320.99
5.6.90.0230.06021.02
5.6.80.0230.05020.44
5.6.70.0000.06020.43
5.6.60.0100.05320.23
5.6.50.0070.05020.39
5.6.40.0100.04720.34
5.6.30.0000.06020.27
5.6.20.0130.05320.23
5.6.10.0030.06720.26
5.6.00.0100.07720.23

preferences:
63.6 ms | 400 KiB | 5 Q