3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function test($bar, $baz = null) { var_dump(func_get_args()); } } class Baz extends Foo { public static function test($bar, ...$args) { parent::test(...$args); } } Baz::test(1); Baz::test(2, 'hello');

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.0140.00016.50
8.3.50.0150.00018.05
8.3.40.0110.00419.02
8.3.30.0150.00018.84
8.3.20.0040.00420.13
8.3.10.0080.00023.48
8.3.00.0080.00019.38
8.2.180.0150.00618.55
8.2.170.0150.00422.96
8.2.160.0070.00720.43
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0060.00317.60
8.2.110.0070.00422.04
8.2.100.0070.00417.93
8.2.90.0080.00019.09
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00719.39
8.2.30.0040.00420.52
8.2.20.0030.00617.68
8.2.10.0040.00418.05
8.2.00.0000.00717.91
8.1.280.0090.00625.92
8.1.270.0030.00622.02
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00320.94
8.1.230.0080.00417.66
8.1.220.0100.00017.74
8.1.210.0060.00318.77
8.1.200.0040.00417.00
8.1.190.0040.00417.10
8.1.180.0000.00718.10
8.1.170.0040.00418.78
8.1.160.0000.00721.83
8.1.150.0050.00318.77
8.1.140.0040.00419.51
8.1.130.0000.00717.63
8.1.120.0050.00317.34
8.1.110.0080.00017.22
8.1.100.0070.00017.40
8.1.90.0080.00017.34
8.1.80.0040.00417.23
8.1.70.0030.00317.32
8.1.60.0040.00417.45
8.1.50.0070.00417.44
8.1.40.0040.00417.48
8.1.30.0050.00517.63
8.1.20.0040.00417.46
8.1.10.0040.00417.55
8.1.00.0070.00017.36
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.35
8.0.270.0030.00317.06
8.0.260.0000.00617.13
8.0.250.0050.00216.99
8.0.240.0080.00016.88
8.0.230.0070.00016.97
8.0.220.0000.00716.88
8.0.210.0000.00716.90
8.0.200.0000.00616.84
8.0.190.0030.00516.99
8.0.180.0000.00816.93
8.0.170.0040.00416.80
8.0.160.0000.00716.77
8.0.150.0000.00816.87
8.0.140.0030.00316.88
8.0.130.0030.00313.35
8.0.120.0090.00016.77
8.0.110.0000.00716.91
8.0.100.0050.00316.85
8.0.90.0000.00816.91
8.0.80.0070.00716.88
8.0.70.0000.00716.75
8.0.60.0070.00016.84
8.0.50.0040.00416.91
8.0.30.0110.00817.13
8.0.20.0100.01017.40
8.0.10.0000.00716.99
8.0.00.0110.00716.72
7.4.330.0000.00515.08
7.4.320.0060.00016.41
7.4.300.0000.00616.56
7.4.290.0070.00016.48
7.4.280.0000.00716.59
7.4.270.0030.00316.60
7.4.260.0040.00416.57
7.4.250.0040.00416.32
7.4.240.0030.00516.54
7.4.230.0050.00216.67
7.4.220.0060.01216.63
7.4.210.0100.01016.50
7.4.200.0040.00416.59
7.4.160.0040.01216.42
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0120.00916.45
7.4.120.0150.00716.51
7.4.110.0060.01216.62
7.4.100.0100.00716.30
7.4.90.0070.01116.36
7.4.80.0100.00719.39
7.4.70.0120.00616.50
7.4.60.0070.01416.49
7.4.50.0060.00316.50
7.4.40.0060.01516.55
7.4.30.0160.00616.60
7.4.00.0120.00315.02
7.3.330.0020.00213.22
7.3.320.0030.00313.31
7.3.310.0000.00816.45
7.3.300.0030.00316.21
7.3.290.0080.01016.36
7.3.280.0040.01316.40
7.3.270.0130.00317.40
7.3.260.0100.00616.38
7.3.250.0120.00716.35
7.3.240.0050.01116.33
7.3.230.0030.01416.39
7.3.210.0130.00316.50
7.3.200.0060.01216.48
7.3.190.0120.00316.41
7.3.180.0110.00716.36
7.3.170.0100.00716.40
7.3.160.0120.00316.29
7.3.120.0060.01314.54
7.3.110.0090.00614.75
7.3.100.0130.00614.49
7.3.90.0040.01114.86
7.3.80.0030.01214.98
7.3.70.0070.00714.72
7.3.60.0080.00814.75
7.3.50.0070.00714.78
7.3.40.0030.01214.85
7.3.30.0040.00814.70
7.3.20.0000.01416.62
7.3.10.0070.00716.25
7.3.00.0040.00716.73
7.2.330.0130.01216.54
7.2.320.0080.01116.29
7.2.310.0090.00616.50
7.2.300.0110.00716.39
7.2.290.0130.00316.47
7.2.250.0030.01314.91
7.2.240.0070.01315.13
7.2.230.0000.01814.69
7.2.220.0030.00914.83
7.2.210.0070.00714.79
7.2.200.0030.01014.83
7.2.190.0100.01014.65
7.2.180.0110.00414.98
7.2.170.0060.01014.96
7.2.60.0060.00616.64
7.2.00.0040.01119.42
7.1.330.0060.00915.77
7.1.320.0030.00715.74
7.1.310.0030.00715.56
7.1.300.0080.01115.54
7.1.290.0090.00015.45
7.1.280.0070.00715.70
7.1.270.0000.01415.66
7.1.260.0040.01115.68
7.1.200.0030.01015.35
7.1.100.0040.01118.00
7.1.70.0000.01016.72
7.1.60.0070.01419.43
7.1.50.0060.01216.52
7.1.00.0070.07322.57
7.0.200.0000.01016.54
7.0.60.0000.08719.86
7.0.50.0170.05017.95
7.0.40.0000.05020.28
7.0.30.0230.08020.27
7.0.20.0400.04320.07
7.0.10.0100.07020.07
7.0.00.0030.04020.14
5.6.280.0030.03021.15
5.6.210.0070.07720.64
5.6.200.0130.07318.23
5.6.190.0030.04320.61
5.6.180.0230.07020.48
5.6.170.0170.05320.46
5.6.160.0070.06320.43
5.6.150.0100.05718.14
5.6.140.0070.08318.15
5.6.130.0100.06718.16
5.6.120.0100.03720.90
5.6.110.0100.08321.13
5.6.100.0100.08021.05
5.6.90.0070.08021.08
5.6.80.0030.08720.53
5.5.350.0300.07320.53
5.5.340.0100.08017.99
5.5.330.0030.04020.33
5.5.320.0130.06020.36
5.5.310.0270.07720.35
5.5.300.0030.08318.09
5.5.290.0000.05717.97
5.5.280.0100.07320.97
5.5.270.0030.06320.65
5.5.260.0100.07720.77
5.5.250.0100.08020.69
5.5.240.0200.06720.27
5.4.450.0230.05019.50
5.4.440.0170.07719.40
5.4.430.0100.06019.14
5.4.420.0370.06319.46
5.4.410.0170.05019.29
5.4.400.0330.05019.25
5.4.390.0330.05719.09
5.4.380.0230.04719.18
5.4.370.0200.06318.82
5.4.360.0170.05719.17
5.4.350.0030.06319.09
5.4.340.0130.06019.14
5.4.320.0100.06019.19
5.4.310.0230.06319.10
5.4.300.0070.06019.09
5.4.290.0200.06019.06
5.4.280.0530.05719.17
5.4.270.0570.05018.81
5.4.260.0630.05718.81
5.4.250.0130.05319.06
5.4.240.0600.04719.17
5.4.230.0700.04319.14
5.4.220.0530.05019.19
5.4.210.0170.05719.00
5.4.200.0500.06719.21
5.4.190.0670.05319.23
5.4.180.0700.05719.08
5.4.170.0700.06019.05
5.4.160.0730.06019.11
5.4.150.0670.05719.06
5.4.140.0800.04016.59
5.4.130.0270.06016.46
5.4.120.0200.05016.61
5.4.110.0100.06016.66
5.4.100.0270.04016.63
5.4.90.0200.04316.57
5.4.80.0270.04016.27
5.4.70.0170.05016.55
5.4.60.0100.05316.49
5.4.50.0270.04716.57
5.4.40.0230.04716.54
5.4.30.0230.04316.48
5.4.20.0070.05316.52
5.4.10.0130.06016.52
5.4.00.0130.04715.95

preferences:
53.78 ms | 400 KiB | 5 Q