3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test($foo = null) {} } class Bar extends Foo { public function test($foo = null, ...$bar) {} } $bar = new Bar; $bar->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.60.0120.00616.63
8.3.50.0140.00721.98
8.3.40.0040.01118.89
8.3.30.0100.00318.57
8.3.20.0040.00420.21
8.3.10.0080.00023.65
8.3.00.0050.00319.13
8.2.180.0160.00618.38
8.2.170.0030.01322.96
8.2.160.0100.00320.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00417.50
8.2.110.0000.00920.43
8.2.100.0080.00318.04
8.2.90.0050.00219.22
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0080.00317.79
8.2.50.0000.00818.07
8.2.40.0070.00019.46
8.2.30.0040.00420.60
8.2.20.0040.00417.49
8.2.10.0000.00717.96
8.2.00.0000.00718.04
8.1.280.0110.00325.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00022.46
8.1.230.0060.00617.52
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0040.00717.22
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00718.76
8.1.160.0040.00421.94
8.1.150.0000.00718.81
8.1.140.0000.00819.49
8.1.130.0000.00717.63
8.1.120.0000.00717.30
8.1.110.0040.00417.39
8.1.100.0070.00017.29
8.1.90.0030.00517.46
8.1.80.0040.00417.39
8.1.70.0030.00317.38
8.1.60.0030.00517.55
8.1.50.0050.00317.55
8.1.40.0000.00817.40
8.1.30.0040.00417.48
8.1.20.0070.00017.68
8.1.10.0020.00517.54
8.1.00.0000.01017.29
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0030.00318.30
8.0.270.0000.00817.11
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0000.00816.86
8.0.230.0000.01016.86
8.0.220.0080.00016.73
8.0.210.0050.00316.68
8.0.200.0030.00316.94
8.0.190.0030.00416.79
8.0.180.0030.00616.91
8.0.170.0050.00316.84
8.0.160.0000.00816.91
8.0.150.0070.00016.77
8.0.140.0050.00316.77
8.0.130.0000.00613.23
8.0.120.0050.00316.68
8.0.110.0000.00816.82
8.0.100.0090.00016.77
8.0.90.0040.00416.87
8.0.80.0060.00916.81
8.0.70.0020.00516.88
8.0.60.0040.00416.73
8.0.50.0040.00416.86
8.0.30.0110.00817.06
8.0.20.0100.01017.40
8.0.10.0040.00416.81
8.0.00.0090.00716.72
7.4.330.0060.00015.08
7.4.320.0030.00316.57
7.4.300.0030.00316.56
7.4.290.0030.00316.49
7.4.280.0040.00416.47
7.4.270.0040.00416.52
7.4.260.0030.00316.52
7.4.250.0000.00816.41
7.4.240.0020.00516.53
7.4.230.0000.00716.62
7.4.220.0030.01516.43
7.4.210.0050.01016.58
7.4.200.0040.00416.39
7.4.160.0120.00316.49
7.4.150.0150.00317.40
7.4.140.0150.00817.86
7.4.130.0150.00916.38
7.4.120.0100.00816.43
7.4.110.0130.00716.46
7.4.100.0080.01516.41
7.4.90.0110.00516.46
7.4.80.0070.01019.39
7.4.70.0060.01216.55
7.4.60.0060.00916.31
7.4.50.0050.00016.29
7.4.40.0070.01016.34
7.4.30.0130.00616.50
7.4.00.0130.00014.87
7.3.330.0000.00513.24
7.3.320.0050.00013.32
7.3.310.0070.00016.09
7.3.300.0050.00216.18
7.3.290.0040.00416.23
7.3.280.0070.01016.29
7.3.270.0070.01017.40
7.3.260.0090.00616.23
7.3.240.0090.00816.15
7.3.230.0100.00716.39
7.3.210.0090.01316.25
7.3.200.0120.00916.20
7.3.190.0070.01016.33
7.3.180.0030.01216.35
7.3.170.0110.00616.29
7.3.160.0090.00616.31
7.2.330.0150.00316.64
7.2.320.0150.00916.72
7.2.310.0040.01216.78
7.2.300.0100.01016.62
7.2.290.0150.00616.68
7.2.00.0070.00319.41
7.1.100.0030.01317.80
7.1.70.0040.00417.14
7.1.60.0070.01119.43
7.1.50.0210.01434.76
7.1.00.0000.08022.44
7.0.200.0910.00714.92
7.0.60.0070.07719.86
7.0.50.0100.07017.87
7.0.40.0100.06720.11
7.0.30.0370.03720.16
7.0.20.0300.08020.18
7.0.10.0130.08320.34
7.0.00.0100.07320.12
5.6.280.0070.05320.90
5.6.210.0070.07720.47
5.6.200.0070.06718.19
5.6.190.0030.08720.57
5.6.180.0230.07020.46
5.6.170.0130.06320.71
5.6.160.0100.06720.39
5.6.150.0030.04318.23
5.6.140.0070.07718.18
5.6.130.0100.09018.17
5.6.120.0130.05020.97
5.6.110.0130.06720.99
5.6.100.0230.05020.99
5.6.90.0000.05721.00
5.6.80.0070.07720.54
5.5.350.0200.06720.53
5.5.340.0100.04718.08
5.5.330.0030.09020.57
5.5.320.0300.06320.29
5.5.310.0300.08020.27
5.5.300.0070.05017.94
5.5.290.0070.08317.97
5.5.280.0100.04720.68
5.5.270.0030.05020.76
5.5.260.0030.08020.73
5.5.250.0030.05320.47
5.5.240.0130.07320.07
5.4.450.0170.04719.61
5.4.440.0130.06719.46
5.4.430.0630.04019.46
5.4.420.0230.06719.60
5.4.410.0270.04019.33
5.4.400.0170.04319.01
5.4.390.0530.05719.25
5.4.380.0270.05018.97
5.4.370.0000.06019.38
5.4.360.0370.04719.05
5.4.350.0370.04719.28
5.4.340.0430.06018.84
5.4.320.0530.05319.29
5.4.310.0600.05019.14
5.4.300.0430.05019.27
5.4.290.0430.05319.25
5.4.280.0400.06019.30
5.4.270.0430.05719.14
5.4.260.0530.04719.05
5.4.250.0570.04318.98
5.4.240.0500.05319.25
5.4.230.0470.05019.27
5.4.220.0530.05319.25
5.4.210.0430.05319.00
5.4.200.0400.05319.24
5.4.190.0430.06019.17
5.4.180.0570.04719.00
5.4.170.0470.05019.07
5.4.160.0430.06018.94
5.4.150.0500.05018.99
5.4.140.0430.05016.45
5.4.130.0430.04716.37
5.4.120.0530.05016.48
5.4.110.0570.04016.56
5.4.100.0470.04316.24
5.4.90.0370.07016.26
5.4.80.0400.04316.67
5.4.70.0470.04316.31
5.4.60.0430.05016.61
5.4.50.0430.05016.40
5.4.40.0570.05016.39
5.4.30.0400.05016.47
5.4.20.0500.05316.60
5.4.10.0570.06016.48
5.4.00.0400.05015.78

preferences:
34.51 ms | 401 KiB | 5 Q