3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test(Baz $bar1 = null) { var_dump(func_get_args()); } } class Baz extends Foo { public function test(...$args) { parent::test(...$args); } } $baz = new Baz(); $baz->test($baz); $foo = new Foo(); $foo->test($baz);

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.0110.00716.75
8.3.50.0100.01018.05
8.3.40.0080.00818.60
8.3.30.0120.00318.58
8.3.20.0050.00220.21
8.3.10.0080.00023.36
8.3.00.0080.00019.13
8.2.180.0170.00318.41
8.2.170.0070.01022.96
8.2.160.0110.00320.56
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0090.00020.89
8.2.100.0060.00618.04
8.2.90.0040.00419.28
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0070.00019.34
8.2.30.0000.00720.54
8.2.20.0040.00417.55
8.2.10.0030.00517.96
8.2.00.0050.00218.05
8.1.270.0050.00323.87
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00319.14
8.1.230.0070.00417.76
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00717.48
8.1.190.0000.00717.22
8.1.180.0040.00418.10
8.1.170.0000.01018.65
8.1.160.0000.00822.00
8.1.150.0000.00718.89
8.1.140.0060.00319.67
8.1.130.0030.00317.67
8.1.120.0050.00217.39
8.1.110.0040.00417.31
8.1.100.0040.00417.43
8.1.90.0000.00717.43
8.1.80.0040.00417.42
8.1.70.0040.00417.49
8.1.60.0000.00717.45
8.1.50.0040.00417.47
8.1.40.0000.00817.51
8.1.30.0060.00617.59
8.1.20.0050.00217.49
8.1.10.0040.00417.42
8.1.00.0060.00317.31
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0030.00317.26
8.0.260.0030.00317.26
8.0.250.0000.00816.95
8.0.240.0070.00317.01
8.0.230.0030.00316.79
8.0.220.0030.00516.85
8.0.210.0030.00316.89
8.0.200.0040.00416.94
8.0.190.0030.00516.81
8.0.180.0040.00416.82
8.0.170.0030.00616.91
8.0.160.0030.00316.77
8.0.150.0000.00716.78
8.0.140.0040.00416.82
8.0.130.0070.00013.29
8.0.120.0050.00316.89
8.0.110.0040.00416.95
8.0.100.0000.00816.93
8.0.90.0040.00416.92
8.0.80.0130.00316.84
8.0.70.0070.00016.94
8.0.60.0020.00516.71
8.0.50.0040.00416.90
8.0.30.0100.00717.05
8.0.20.0100.00817.40
8.0.10.0000.00816.89
8.0.00.0120.01016.76
7.4.330.0000.00515.08
7.4.320.0030.00616.59
7.4.300.0040.00416.59
7.4.290.0020.00516.49
7.4.280.0060.00316.39
7.4.270.0000.00716.45
7.4.260.0000.00816.52
7.4.250.0040.00416.38
7.4.240.0000.00716.48
7.4.230.0000.00716.33
7.4.220.0040.01516.44
7.4.210.0070.01416.60
7.4.200.0000.00716.29
7.4.160.0040.01116.57
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0070.01016.61
7.4.120.0050.01216.49
7.4.110.0130.00516.43
7.4.100.0130.01016.46
7.4.90.0180.00016.30
7.4.80.0120.00619.39
7.4.70.0060.01216.47
7.4.60.0040.01816.49
7.4.50.0090.00016.60
7.4.40.0030.01316.69
7.4.30.0100.01316.49
7.4.00.0070.00714.72
7.3.330.0050.00013.24
7.3.320.0030.00213.30
7.3.310.0000.00716.25
7.3.300.0030.00316.16
7.3.290.0060.01116.26
7.3.280.0100.00616.27
7.3.270.0090.00917.40
7.3.260.0100.00716.60
7.3.250.0100.00916.49
7.3.240.0020.01816.34
7.3.230.0120.00616.39
7.3.210.0100.00716.56
7.3.200.0070.01016.32
7.3.190.0060.01216.18
7.3.180.0060.01116.29
7.3.170.0070.01016.27
7.3.160.0080.00816.42
7.2.330.0030.01516.75
7.2.320.0120.00616.48
7.2.310.0070.01416.79
7.2.300.0060.01016.21
7.2.290.0090.00616.64
7.2.60.0140.01316.76
7.2.00.0070.01119.27
7.1.200.0040.01115.64
7.1.100.0000.01318.13
7.1.70.0000.00816.77
7.1.60.0110.01419.43
7.1.50.0060.00616.78
7.1.00.0070.07322.30
7.0.200.0300.00314.43
7.0.60.0100.07719.98
7.0.50.0100.07017.87
7.0.40.0070.08020.11
7.0.30.0230.05320.25
7.0.20.0100.05020.25
7.0.10.0030.04720.30
7.0.00.0070.07020.18
5.6.280.0000.06321.14
5.6.210.0100.06020.48
5.6.200.0100.08318.16
5.6.190.0070.08320.57
5.6.180.0130.04720.61
5.6.170.0200.05020.51
5.6.160.0230.07020.57
5.6.150.0000.09018.27
5.6.140.0030.03718.19
5.6.130.0030.07318.23
5.6.120.0070.08720.91
5.6.110.0130.07320.98
5.6.100.0130.07721.04
5.6.90.0070.08321.17
5.6.80.0070.08320.41
5.5.350.0400.07720.40
5.5.340.0100.05017.92
5.5.330.0100.08720.47
5.5.320.0270.03320.34
5.5.310.0370.06720.38
5.5.300.0030.04017.95
5.5.290.0100.05717.97
5.5.280.0070.07020.80
5.5.270.0030.04720.87
5.5.260.0000.07720.68
5.5.250.0070.03720.49
5.5.240.0100.04020.19
5.4.450.0200.07719.34
5.4.440.0130.05719.58
5.4.430.0170.05019.49
5.4.420.0030.06719.38
5.4.410.0130.05719.32
5.4.400.0170.05019.15
5.4.390.0170.05319.13
5.4.380.0170.04718.88
5.4.370.0100.05719.13
5.4.360.0170.05319.03
5.4.350.0170.05019.06
5.4.340.0070.06019.23
5.4.320.0100.05719.23
5.4.310.0200.04719.15
5.4.300.0070.06319.13
5.4.290.0100.05719.14
5.4.280.0170.05718.98
5.4.270.0130.05319.06
5.4.260.0230.04319.14
5.4.250.0130.05018.98
5.4.240.0100.05319.14
5.4.230.0070.06019.38
5.4.220.0200.05019.00
5.4.210.0170.05019.37
5.4.200.0200.05019.14
5.4.190.0130.06019.00
5.4.180.0230.04319.13
5.4.170.0270.04319.13
5.4.160.0200.06019.21
5.4.150.0170.07018.82
5.4.140.0230.05016.55
5.4.130.0170.06316.50
5.4.120.0270.05716.48
5.4.110.0170.05016.50
5.4.100.0170.06016.58
5.4.90.0170.06316.68
5.4.80.0170.05016.62
5.4.70.0300.04016.66
5.4.60.0230.04016.60
5.4.50.0200.04716.39
5.4.40.0230.04316.62
5.4.30.0270.05016.57
5.4.20.0170.05716.46
5.4.10.0200.05016.25
5.4.00.0100.05015.86

preferences:
61.13 ms | 400 KiB | 5 Q