3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test($bar = null) { var_dump(func_get_args()); } } class Baz extends Foo { public function test(...$args) { parent::test(...$args); } } $baz = new Baz(); $baz->test(); $foo = new Foo(); $foo->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.0140.00418.54
8.3.30.0110.00418.60
8.3.20.0070.00020.29
8.3.10.0000.00723.57
8.3.00.0040.00419.38
8.2.170.0130.00722.96
8.2.160.0070.00720.52
8.2.150.0050.00325.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0060.00317.63
8.2.110.0040.00420.98
8.2.100.0060.00617.91
8.2.90.0040.00417.84
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.91
8.2.50.0000.00718.07
8.2.40.0040.00419.21
8.2.30.0050.00220.62
8.2.20.0000.00717.66
8.2.10.0000.00817.93
8.2.00.0000.00818.10
8.1.270.0060.00323.80
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00822.53
8.1.230.0060.00620.85
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0040.00418.70
8.1.160.0000.00721.94
8.1.150.0040.00418.83
8.1.140.0030.00619.48
8.1.130.0000.00717.61
8.1.120.0040.00417.45
8.1.110.0000.00717.37
8.1.100.0050.00217.40
8.1.90.0020.00517.34
8.1.80.0070.00017.36
8.1.70.0030.00317.45
8.1.60.0000.00817.46
8.1.50.0000.00817.48
8.1.40.0040.00417.52
8.1.30.0040.00717.54
8.1.20.0000.00817.61
8.1.10.0040.00417.50
8.1.00.0080.00017.29
8.0.300.0050.00319.98
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0080.00017.30
8.0.260.0030.00317.20
8.0.250.0040.00416.92
8.0.240.0040.00416.78
8.0.230.0000.00716.99
8.0.220.0000.00716.94
8.0.210.0000.00716.86
8.0.200.0000.00616.92
8.0.190.0040.00416.93
8.0.180.0020.00516.82
8.0.170.0000.00716.87
8.0.160.0070.00016.87
8.0.150.0000.00716.79
8.0.140.0040.00416.73
8.0.130.0000.00713.30
8.0.120.0050.00316.90
8.0.110.0040.00416.78
8.0.100.0070.00016.85
8.0.90.0030.00516.71
8.0.80.0030.01316.90
8.0.70.0070.00016.88
8.0.60.0040.00416.83
8.0.50.0050.00216.89
8.0.30.0120.00817.01
8.0.20.0120.00617.40
8.0.10.0080.00016.86
8.0.00.0070.01516.61
7.4.330.0000.00515.16
7.4.320.0040.00416.48
7.4.300.0000.00716.41
7.4.290.0000.00716.41
7.4.280.0060.00316.49
7.4.270.0030.00316.48
7.4.260.0030.00516.52
7.4.250.0040.00416.53
7.4.240.0010.00616.55
7.4.230.0000.00716.68
7.4.220.0060.01216.48
7.4.210.0100.01016.60
7.4.200.0070.00016.39
7.4.160.0130.00316.66
7.4.150.0100.00917.40
7.4.140.0150.01017.86
7.4.130.0110.00916.50
7.4.120.0080.01016.53
7.4.110.0100.01016.49
7.4.100.0110.01416.41
7.4.90.0130.00616.57
7.4.80.0060.01219.39
7.4.70.0090.00916.36
7.4.60.0090.01216.64
7.4.50.0050.00416.41
7.4.40.0000.01716.58
7.4.30.0140.00816.57
7.4.00.0050.01215.04
7.3.330.0000.00513.28
7.3.320.0000.00513.11
7.3.310.0000.00716.26
7.3.300.0030.00316.25
7.3.290.0060.01116.29
7.3.280.0070.01016.33
7.3.270.0110.00817.40
7.3.260.0080.00816.43
7.3.250.0120.00516.34
7.3.240.0110.00816.31
7.3.230.0070.01016.42
7.3.210.0100.00716.57
7.3.200.0070.01016.31
7.3.190.0100.00716.34
7.3.180.0140.00316.37
7.3.170.0100.00716.28
7.3.160.0060.00916.34
7.3.120.0000.01214.59
7.3.110.0060.01214.81
7.3.100.0030.01214.86
7.3.90.0090.00314.88
7.3.80.0000.01414.51
7.3.70.0040.00814.52
7.3.60.0040.01114.58
7.3.50.0070.00714.90
7.3.40.0100.00614.78
7.3.30.0040.01114.79
7.3.20.0050.00516.67
7.3.10.0090.00916.41
7.3.00.0040.00416.55
7.2.330.0070.01016.59
7.2.320.0060.01216.70
7.2.310.0090.00916.28
7.2.300.0060.01316.33
7.2.290.0100.01016.29
7.2.250.0100.00714.68
7.2.240.0070.01015.10
7.2.230.0070.00715.12
7.2.220.0000.01714.89
7.2.210.0060.00914.86
7.2.200.0090.00314.89
7.2.190.0100.00714.84
7.2.180.0120.00014.94
7.2.170.0030.00714.90
7.2.60.0130.01116.70
7.2.00.0000.01319.62
7.1.330.0030.01015.55
7.1.320.0030.01015.75
7.1.310.0090.00615.50
7.1.300.0070.00715.52
7.1.290.0030.01315.80
7.1.280.0070.00715.77
7.1.270.0100.00015.59
7.1.260.0060.00615.73
7.1.200.0000.01015.22
7.1.100.0000.01218.17
7.1.70.0040.00417.09
7.1.60.0090.01819.43
7.1.50.0060.01616.80
7.1.00.0070.07322.37
7.0.200.0400.01014.43
7.0.60.0100.07719.78
7.0.50.0100.07717.88
7.0.40.0100.08320.18
7.0.30.0300.06320.07
7.0.20.0170.04320.06
7.0.10.0100.07020.23
7.0.00.0100.08320.22
5.6.280.0030.06020.92
5.6.210.0130.07720.63
5.6.200.0100.03718.19
5.6.190.0000.04720.39
5.6.180.0230.03720.63
5.6.170.0330.07320.62
5.6.160.0100.04320.54
5.6.150.0000.09318.29
5.6.140.0000.04718.21
5.6.130.0170.03018.15
5.6.120.0030.08720.95
5.6.110.0070.08020.96
5.6.100.0030.07720.89
5.6.90.0100.06720.98
5.6.80.0000.06720.39
5.5.350.0370.05720.54
5.5.340.0100.05317.97
5.5.330.0070.05020.28
5.5.320.0300.08020.34
5.5.310.0300.07320.51
5.5.300.0070.03718.05
5.5.290.0070.06718.01
5.5.280.0070.04720.77
5.5.270.0030.04320.87
5.5.260.0070.07320.68
5.5.250.0070.03720.62
5.5.240.0100.05720.27
5.4.450.0700.05719.34
5.4.440.0570.06319.34
5.4.430.0770.05319.45
5.4.420.0570.06019.47
5.4.410.0600.05319.45
5.4.400.0700.05019.06
5.4.390.0570.06319.26
5.4.380.0730.04719.06
5.4.370.0770.05018.87
5.4.360.0730.04318.86
5.4.350.0700.04718.98
5.4.340.0670.05019.13
5.4.320.0730.04718.86
5.4.310.0770.06019.29
5.4.300.0730.06019.05
5.4.290.0600.05719.14
5.4.280.0830.06719.30
5.4.270.0700.04718.98
5.4.260.0670.05019.28
5.4.250.0700.04319.30
5.4.240.0700.04719.25
5.4.230.0670.05318.83
5.4.220.0870.05718.88
5.4.210.0670.06019.24
5.4.200.0570.05319.13
5.4.190.0630.05719.21
5.4.180.0600.04719.25
5.4.170.0500.05719.14
5.4.160.0500.06019.04
5.4.150.0670.05318.96
5.4.140.0700.05016.39
5.4.130.0570.04716.60
5.4.120.0530.05016.44
5.4.110.0470.06016.69
5.4.100.0630.05316.63
5.4.90.0600.04016.66
5.4.80.0670.05016.63
5.4.70.0870.06316.57
5.4.60.0900.05716.58
5.4.50.0670.04716.26
5.4.40.0670.04716.55
5.4.30.0700.05016.57
5.4.20.0670.04716.42
5.4.10.0670.05316.18
5.4.00.0530.05315.75

preferences:
51.26 ms | 404 KiB | 6 Q