3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test(Foo $foo = null) {} } class Bar extends Foo { public function test(...$bar) {} }

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.0050.01621.99
8.3.40.0140.00018.55
8.3.30.0120.00318.72
8.3.20.0000.00820.18
8.3.10.0070.00023.65
8.3.00.0080.00019.13
8.2.180.0120.00618.16
8.2.170.0070.00722.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.82
8.2.110.0040.00722.31
8.2.100.0120.00017.90
8.2.90.0050.00219.05
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00819.31
8.2.30.0080.00020.57
8.2.20.0000.00717.40
8.2.10.0030.00519.61
8.2.00.0000.00717.99
8.1.280.0070.01025.92
8.1.270.0040.00420.55
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0040.00422.55
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0040.00718.77
8.1.200.0080.00017.00
8.1.190.0030.00517.00
8.1.180.0080.00018.10
8.1.170.0000.00719.03
8.1.160.0040.00421.94
8.1.150.0000.00718.71
8.1.140.0080.00019.46
8.1.130.0000.00717.45
8.1.120.0000.00717.43
8.1.110.0000.00717.36
8.1.100.0000.00717.25
8.1.90.0040.00417.16
8.1.80.0000.00817.34
8.1.70.0030.00317.36
8.1.60.0080.00017.46
8.1.50.0000.00817.37
8.1.40.0040.00417.34
8.1.30.0090.00017.41
8.1.20.0000.00817.45
8.1.10.0050.00217.30
8.1.00.0040.00417.33
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0030.00318.32
8.0.270.0040.00417.23
8.0.260.0030.00317.18
8.0.250.0000.00716.86
8.0.240.0080.00016.89
8.0.230.0000.00816.84
8.0.220.0070.00016.70
8.0.210.0000.00816.77
8.0.200.0050.00216.79
8.0.190.0040.00416.86
8.0.180.0000.00716.75
8.0.170.0070.00016.64
8.0.160.0030.00316.70
8.0.150.0090.00016.67
8.0.140.0050.00316.70
8.0.130.0050.00013.12
8.0.120.0040.00416.77
8.0.110.0070.00016.84
8.0.100.0070.00016.87
8.0.90.0040.00416.75
8.0.80.0040.01116.82
8.0.70.0040.00416.54
8.0.60.0040.00416.71
8.0.50.0000.00716.67
8.0.30.0130.00817.04
8.0.20.0100.01017.40
8.0.10.0040.00416.88
8.0.00.0120.00716.51
7.4.330.0000.00515.08
7.4.320.0070.00016.47
7.4.300.0030.00316.42
7.4.290.0030.00316.52
7.4.280.0060.00316.45
7.4.270.0060.00016.50
7.4.260.0030.00316.22
7.4.250.0000.00716.33
7.4.240.0050.00316.47
7.4.230.0050.00316.57
7.4.220.0030.01616.47
7.4.210.0110.00716.41
7.4.200.0000.00716.48
7.4.160.0060.00916.30
7.4.150.0030.02117.40
7.4.140.0140.00517.86
7.4.130.0110.00716.36
7.4.120.0130.00416.45
7.4.110.0120.01216.46
7.4.100.0180.00616.46
7.4.90.0090.00916.41
7.4.80.0100.01319.39
7.4.70.0090.00816.32
7.4.60.0000.01616.57
7.4.50.0000.00816.14
7.4.40.0040.01316.59
7.4.30.0160.00716.53
7.4.00.0080.00814.79
7.3.330.0000.00513.11
7.3.320.0020.00213.26
7.3.310.0000.00716.21
7.3.300.0000.00716.11
7.3.290.0000.00716.20
7.3.280.0110.00816.21
7.3.270.0130.00317.40
7.3.260.0070.01416.30
7.3.250.0090.01316.38
7.3.240.0110.00516.19
7.3.230.0100.00716.39
7.3.210.0070.01016.37
7.3.200.0140.00716.25
7.3.190.0100.00716.25
7.3.180.0130.00416.31
7.3.170.0070.01016.34
7.3.160.0060.01016.41
7.2.330.0100.01216.46
7.2.320.0200.00616.57
7.2.310.0040.01216.49
7.2.300.0030.01316.19
7.2.290.0100.01316.26
7.2.60.0060.00616.32
7.2.00.0000.01119.38
7.1.200.0030.01015.56
7.1.100.0080.00417.73
7.1.70.0130.00016.70
7.1.60.0070.01419.43
7.1.50.0030.00816.83
7.1.00.0100.07022.44
7.0.200.0280.01014.56
7.0.60.0130.06019.92
7.0.50.0070.07717.86
7.0.40.0030.06720.11
7.0.30.0230.04020.19
7.0.20.0400.05320.19
7.0.10.0130.05020.10
7.0.00.0130.08020.07
5.6.280.0070.04320.87
5.6.210.0100.06720.52
5.6.200.0100.07718.22
5.6.190.0030.08720.61
5.6.180.0200.05020.52
5.6.170.0300.07320.62
5.6.160.0030.05020.43
5.6.150.0070.04018.18
5.6.140.0030.08718.23
5.6.130.0070.08318.21
5.6.120.0070.05321.05
5.6.110.0100.08021.04
5.6.100.0130.07720.98
5.6.90.0070.06020.98
5.6.80.0070.08020.41
5.5.350.0300.06320.35
5.5.340.0030.06717.98
5.5.330.0000.09020.30
5.5.320.0200.04320.31
5.5.310.0230.04720.38
5.5.300.0030.05018.03
5.5.290.0030.07018.07
5.5.280.0030.04720.88
5.5.270.0070.05720.74
5.5.260.0030.09320.96
5.5.250.0100.05720.69
5.5.240.0130.07020.26
5.4.450.0100.05719.58
5.4.440.0570.05019.59
5.4.430.0530.05019.59
5.4.420.0530.04719.25
5.4.410.0170.06719.11
5.4.400.0130.05318.92
5.4.390.0070.06019.22
5.4.380.0170.06319.10
5.4.370.0130.05319.20
5.4.360.0130.05719.09
5.4.350.0170.05719.22
5.4.340.0100.06319.25
5.4.320.0130.06318.98
5.4.310.0170.06019.22
5.4.300.0130.05319.08
5.4.290.0130.05319.14
5.4.280.0130.05019.25
5.4.270.0100.05318.80
5.4.260.0270.04319.25
5.4.250.0370.05719.25
5.4.240.0230.05019.27
5.4.230.0070.05719.13
5.4.220.0300.05319.25
5.4.210.0100.06319.24
5.4.200.0130.06319.02
5.4.190.0230.05319.13
5.4.180.0070.06019.03
5.4.170.0170.05018.96
5.4.160.0130.05319.02
5.4.150.0270.06719.25
5.4.140.0170.05316.45
5.4.130.0170.05016.59
5.4.120.0230.04316.77
5.4.110.0200.04716.46
5.4.100.0130.05716.25
5.4.90.0200.04316.65
5.4.80.0230.04716.58
5.4.70.0200.04316.61
5.4.60.0200.04716.48
5.4.50.0130.05316.57
5.4.40.0100.05316.39
5.4.30.0030.05716.44
5.4.20.0170.05716.38
5.4.10.0130.05316.57
5.4.00.0170.05715.83

preferences:
52.69 ms | 401 KiB | 5 Q