3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface T { function foo(T $t); } class S implements T { function foo($t) {} function bar(S $s) {} } class R extends S { function bar($s) {} }

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.5.30.0140.00917.36
8.5.20.0170.00519.48
8.5.10.0120.00916.64
8.5.00.0160.00619.86
8.4.180.0100.01125.38
8.4.170.0150.00823.92
8.4.160.0120.01023.91
8.4.150.0060.00616.79
8.4.140.0090.01217.16
8.4.130.0120.00817.82
8.4.120.0130.00720.51
8.4.110.0120.00918.61
8.4.100.0120.00917.85
8.4.90.0130.00817.50
8.4.80.0040.00419.05
8.4.70.0110.01017.71
8.4.60.0100.00718.67
8.4.50.0170.00420.22
8.4.40.0070.00417.34
8.4.30.0100.01019.21
8.4.20.0100.01017.30
8.4.10.0030.00719.54
8.3.300.0090.00824.53
8.3.290.0100.01118.29
8.3.280.0080.00416.17
8.3.270.0120.00716.79
8.3.260.0120.00716.77
8.3.250.0120.00518.86
8.3.240.0030.00516.57
8.3.230.0140.00616.70
8.3.220.0140.00416.45
8.3.210.0030.00416.41
8.3.200.0030.00616.47
8.3.190.0130.00518.78
8.3.180.0120.00816.63
8.3.170.0120.00317.00
8.3.160.0060.01218.01
8.3.150.0060.01216.40
8.3.140.0040.00417.15
8.3.130.0000.00818.40
8.3.120.0000.00920.66
8.3.110.0000.00720.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0090.00016.50
8.3.70.0070.00718.68
8.3.60.0100.01018.18
8.3.50.0100.00816.57
8.3.40.0120.00318.60
8.3.30.0040.01118.46
8.3.20.0040.00420.04
8.3.10.0080.00020.82
8.3.00.0090.00019.06
8.2.300.0130.00718.15
8.2.290.0130.00620.09
8.2.280.0110.00518.13
8.2.270.0080.00016.84
8.2.260.0150.00317.98
8.2.250.0050.00316.57
8.2.240.0090.00617.04
8.2.230.0040.00422.58
8.2.220.0070.00737.54
8.2.210.0080.00026.77
8.2.200.0050.00316.63
8.2.190.0110.00616.58
8.2.180.0110.00418.04
8.2.170.0140.00022.96
8.2.160.0130.00022.23
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0050.00320.94
8.2.120.0040.00426.35
8.2.110.0070.00320.89
8.2.100.0060.00617.91
8.2.90.0050.00319.23
8.2.80.0080.00517.97
8.2.70.0090.00017.50
8.2.60.0100.00017.93
8.2.50.0050.00318.10
8.2.40.0000.00820.52
8.2.30.0050.00519.16
8.2.20.0070.00018.04
8.2.10.0040.00417.93
8.2.00.0040.00418.05
8.1.340.0110.00818.27
8.1.330.0110.00816.88
8.1.320.0100.00616.01
8.1.310.0120.00618.44
8.1.300.0100.01017.67
8.1.290.0090.00018.88
8.1.280.0110.00725.92
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0060.00320.88
8.1.230.0050.00520.31
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0060.00317.23
8.1.180.0030.00718.10
8.1.170.0040.00418.60
8.1.160.0000.00718.80
8.1.150.0000.00820.21
8.1.140.0030.00519.50
8.1.130.0030.00318.76
8.1.120.0080.00017.28
8.1.110.0000.00817.29
8.1.100.0040.00417.46
8.1.90.0000.00717.36
8.1.80.0050.00317.32
8.1.70.0000.00717.31
8.1.60.0050.00217.56
8.1.50.0050.00317.48
8.1.40.0040.00417.35
8.1.30.0080.00017.53
8.1.20.0050.00217.46
8.1.10.0040.00417.28
8.1.00.0030.00617.32
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.29
8.0.270.0030.00316.65
8.0.260.0000.00618.82
8.0.250.0030.00316.87
8.0.240.0070.00016.78
8.0.230.0000.00816.90
8.0.220.0000.00716.73
8.0.210.0080.00016.85
8.0.200.0030.00316.86
8.0.190.0000.00716.79
8.0.180.0040.00416.85
8.0.170.0000.00716.84
8.0.160.0000.00716.78
8.0.150.0060.00316.59
8.0.140.0080.00016.66
8.0.130.0060.00013.32
8.0.120.0040.00416.67
8.0.110.0070.00016.86
8.0.100.0000.00716.81
8.0.90.0080.00016.70
8.0.80.0060.00916.81
8.0.70.0000.00716.86
8.0.60.0070.00016.66
8.0.50.0040.00416.87
8.0.30.0080.01117.04
8.0.20.0100.01017.40
8.0.10.0080.00016.73
8.0.00.0070.01116.54
7.4.330.0030.00315.55
7.4.320.0030.00316.36
7.4.300.0000.00716.38
7.4.290.0000.00716.55
7.4.280.0040.00416.53
7.4.270.0000.00616.36
7.4.260.0000.01016.51
7.4.250.0040.00416.50
7.4.240.0030.00316.42
7.4.230.0070.00016.27
7.4.220.0030.01316.55
7.4.210.0080.00616.49
7.4.200.0030.00316.42
7.4.160.0050.01116.26
7.4.150.0090.00917.40
7.4.140.0120.00817.86
7.4.130.0000.01616.42
7.4.120.0090.01316.46
7.4.110.0060.01116.48
7.4.100.0050.01616.59
7.4.90.0030.01416.25
7.4.80.0110.00619.39
7.4.70.0090.01216.45
7.4.60.0180.00416.41
7.4.50.0110.00416.24
7.4.40.0060.00916.54
7.4.30.0100.00716.36
7.4.00.0080.00814.84
7.3.330.0000.00513.11
7.3.320.0000.00613.11
7.3.310.0050.00216.11
7.3.300.0040.00416.16
7.3.290.0070.00016.13
7.3.280.0080.00816.23
7.3.270.0100.00717.40
7.3.260.0080.01016.34
7.3.250.0070.01116.31
7.3.240.0110.00816.23
7.3.230.0070.01116.22
7.3.210.0070.01016.47
7.3.200.0120.00916.43
7.3.190.0130.00316.52
7.3.180.0080.00816.17
7.3.170.0100.01016.54
7.3.160.0090.01216.20
7.3.10.0030.00816.54
7.3.00.0060.00916.64
7.2.330.0150.00316.45
7.2.320.0100.01316.71
7.2.310.0160.00616.36
7.2.300.0130.01016.59
7.2.290.0160.00316.51
7.2.130.0090.00616.97
7.2.120.0060.00616.71
7.2.110.0100.00316.86
7.2.100.0000.01016.89
7.2.90.0040.01116.75
7.2.80.0000.01016.76
7.2.70.0100.00716.87
7.2.60.0060.00816.76
7.2.50.0030.01016.55
7.2.40.0000.00816.74
7.2.30.0120.00316.72
7.2.20.0090.00016.77
7.2.10.0040.00916.52
7.2.00.0030.01016.59
7.1.250.0040.00415.65
7.1.200.0050.00315.49
7.1.90.0270.00817.08
7.1.80.0040.01117.85
7.1.70.0030.01116.99
7.1.60.0210.01335.03
7.1.50.0130.01434.61
7.1.40.0190.00834.32
7.1.30.0150.01134.24
7.1.20.0120.01834.60
7.1.10.0070.01016.65
7.1.00.0050.00816.49
7.0.230.0300.00717.46
7.0.220.0840.00817.52
7.0.210.0050.00916.53
7.0.200.0050.00916.69
7.0.190.0050.00916.62
7.0.180.0090.00616.20
7.0.170.0020.01316.12
7.0.160.0090.00616.12
7.0.150.0110.00516.04
7.0.140.0020.01416.14
7.0.130.0050.00816.24
7.0.120.0060.00716.24
7.0.110.0070.00516.02
7.0.100.0060.00616.08
7.0.90.0050.00716.30
7.0.80.0080.00716.22
7.0.70.0040.01116.19
7.0.60.0060.01115.91
7.0.50.0070.00716.35
7.0.40.0090.00516.46
7.0.30.0040.00916.41
7.0.20.0080.00616.27
7.0.10.0040.01116.18
7.0.00.0050.01116.38

preferences:
114.53 ms | 1514 KiB | 5 Q