3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IRole { } interface Foo { public function bar(IRole $role = null); } class Bat implements Foo { public function bar($role = null) { echo "test"; } }

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.40.0040.01118.62
8.3.30.0090.00618.43
8.3.20.0040.00420.16
8.3.10.0040.00423.64
8.3.00.0040.00419.67
8.2.170.0040.01118.72
8.2.160.0110.00422.96
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0060.00322.11
8.2.100.0080.00417.53
8.2.90.0000.00919.21
8.2.80.0040.00417.97
8.2.70.0060.00317.62
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0040.00419.34
8.2.30.0000.00717.90
8.2.20.0040.00417.57
8.2.10.0070.00017.97
8.2.00.0040.00417.98
8.1.270.0110.00720.39
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00723.77
8.1.230.0060.00620.97
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.10
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00721.99
8.1.150.0000.00718.78
8.1.140.0000.00817.43
8.1.130.0000.00817.70
8.1.120.0040.00417.41
8.1.110.0040.00417.27
8.1.100.0000.00817.30
8.1.90.0070.00017.42
8.1.80.0030.00417.28
8.1.70.0070.00017.29
8.1.60.0050.00217.41
8.1.50.0060.00317.35
8.1.40.0030.00617.31
8.1.30.0040.00417.45
8.1.20.0040.00417.57
8.1.10.0040.00417.31
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0070.00017.18
8.0.260.0030.00317.10
8.0.250.0040.00416.92
8.0.240.0070.00016.80
8.0.230.0050.00216.93
8.0.220.0000.00816.84
8.0.210.0070.00016.78
8.0.200.0040.00416.90
8.0.190.0040.00416.82
8.0.180.0070.00016.73
8.0.170.0040.00416.86
8.0.160.0000.00816.79
8.0.150.0000.00916.76
8.0.140.0040.00416.72
8.0.130.0070.00013.25
8.0.120.0040.00416.66
8.0.110.0000.00816.82
8.0.100.0050.00316.63
8.0.90.0040.00416.72
8.0.80.0040.01116.77
8.0.70.0000.00716.70
8.0.60.0040.00416.82
8.0.50.0000.00716.72
8.0.30.0130.00717.14
8.0.20.0150.00317.40
8.0.10.0040.00416.86
8.0.00.0090.01116.79
7.4.330.0000.00615.09
7.4.320.0000.00616.34
7.4.300.0060.00016.33
7.4.290.0030.00316.34
7.4.280.0000.00716.44
7.4.270.0070.00016.42
7.4.260.0060.00316.41
7.4.250.0000.00716.41
7.4.240.0040.00416.42
7.4.230.0000.00616.27
7.4.220.0090.00916.45
7.4.210.0080.00616.55
7.4.200.0000.00716.18
7.4.160.0130.00316.50
7.4.150.0090.01517.40
7.4.140.0130.01017.86
7.4.130.0090.01116.43
7.4.120.0070.01016.49
7.4.110.0090.01216.25
7.4.100.0070.01016.48
7.4.90.0070.01016.46
7.4.80.0060.01019.39
7.4.70.0030.01316.42
7.4.60.0120.00316.30
7.4.50.0080.00016.21
7.4.40.0040.01116.13
7.4.30.0070.01316.37
7.4.00.0160.00015.08
7.3.330.0000.00513.12
7.3.320.0030.00213.13
7.3.310.0000.00716.07
7.3.300.0000.00716.18
7.3.290.0150.00016.09
7.3.280.0110.00616.18
7.3.270.0030.01417.40
7.3.260.0220.00016.25
7.3.250.0140.00716.29
7.3.240.0100.00716.41
7.3.230.0090.00916.43
7.3.210.0100.00716.44
7.3.200.0000.01616.30
7.3.190.0090.00616.45
7.3.180.0100.01016.13
7.3.170.0060.01016.33
7.3.160.0030.01916.44
7.3.10.0070.01116.50
7.3.00.0030.00916.48
7.2.330.0190.00316.63
7.2.320.0170.00716.37
7.2.310.0090.01216.58
7.2.300.0160.00016.68
7.2.290.0100.00716.40
7.2.130.0030.00916.79
7.2.120.0030.01016.86
7.2.110.0040.00816.92
7.2.100.0070.00316.66
7.2.90.0000.01516.54
7.2.80.0070.00716.62
7.2.70.0000.00816.70
7.2.60.0050.01016.65
7.2.50.0000.00916.79
7.2.40.0030.01216.61
7.2.30.0120.00316.90
7.2.20.0070.00716.72
7.2.10.0100.00616.76
7.2.00.0080.00618.00
7.1.250.0040.00415.49
7.1.200.0000.01415.49
7.1.100.0080.00317.84
7.1.70.0040.00417.00
7.1.60.0130.01020.03
7.1.50.0070.01716.96
7.1.00.0130.06322.54
7.0.200.0000.00716.65
7.0.60.0200.08019.86
7.0.50.0100.07717.79
7.0.40.0130.04320.10
7.0.30.0170.04020.23
7.0.20.0370.07020.15
7.0.10.0000.07720.10
7.0.00.0030.07320.16
5.6.280.0070.05320.81
5.6.210.0100.05720.50
5.6.200.0170.07718.20
5.6.190.0200.07720.77
5.6.180.0370.07320.39
5.6.170.0300.07320.47
5.6.160.0030.07320.57
5.6.150.0070.06018.28
5.6.140.0070.07718.24
5.6.130.0130.06318.21
5.6.120.0030.04321.01
5.6.110.0070.07020.98
5.6.100.0000.07721.14
5.6.90.0100.08321.00
5.6.80.0070.03720.41
5.5.350.0130.04320.47
5.5.340.0100.08018.03
5.5.330.0130.06720.21
5.5.320.1400.04320.25
5.5.310.0270.05320.36
5.5.300.0070.08017.99
5.5.290.0070.07317.94
5.5.280.0030.07720.95
5.5.270.0170.07320.89
5.5.260.0070.06720.86
5.5.250.0070.08020.58
5.5.240.0230.06720.04
5.4.450.0330.05319.43
5.4.440.0430.06019.39
5.4.430.0370.05319.48
5.4.420.0400.04319.46
5.4.410.0270.06019.09
5.4.400.0330.05018.93
5.4.390.0370.05719.05
5.4.380.0400.05018.68
5.4.370.0500.04318.70
5.4.360.0270.06018.89
5.4.350.0430.05718.89
5.4.340.0400.05019.07
5.4.320.0370.05018.82
5.4.310.0330.07019.19
5.4.300.0430.05018.99
5.4.290.0400.06018.93
5.4.280.0370.05718.68
5.4.270.0500.04319.10
5.4.260.0400.05019.12
5.4.250.0330.06019.05
5.4.240.0330.06318.98
5.4.230.0430.05019.05
5.4.220.0470.04719.00
5.4.210.0370.05318.92
5.4.200.0400.05019.05
5.4.190.0270.05718.90
5.4.180.0270.05319.12
5.4.170.0170.06718.83
5.4.160.0270.06318.90
5.4.150.0400.05318.88
5.4.140.0470.05316.34
5.4.130.0400.05016.49
5.4.120.0370.05016.52
5.4.110.0430.05016.65
5.4.100.0400.05016.65
5.4.90.0370.05016.63
5.4.80.0370.04016.54
5.4.70.0200.04716.28
5.4.60.0170.04016.17
5.4.50.0030.04716.42
5.4.40.0170.03716.51
5.4.30.0070.03316.56
5.4.20.0330.03316.51
5.4.10.0300.04316.16

preferences:
41.79 ms | 400 KiB | 5 Q