3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Basis { public function __construct($args = null) { if (is_numeric($args) && $args > 0) echo PHP_EOL . 'Geen argumenten gebruiken halve gare!' . PHP_EOL; } public function testArgs($given, $defined) { if ($given > count($defined)) echo PHP_EOL . 'Te veel argumenten gebruikt soepkip!' . PHP_EOL; } } class Testing extends Basis { public function __construct() { parent::__construct(func_num_args()); } public function someFunction($a, $b) { $this->testArgs(func_num_args(), get_defined_vars()); } } $test = new Testing('stiekem een argument toegevoegd!'); $test->someFunction('a', 'b'); $test->someFunction('a', 'b', 'eentje teveel');

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.4.10.0030.01320.41
8.3.140.0120.00316.60
8.3.130.0000.00818.27
8.3.120.0080.00018.82
8.3.110.0130.00716.75
8.3.100.0090.00024.06
8.3.90.0080.00826.77
8.3.80.0060.00316.75
8.3.70.0060.00916.63
8.3.60.0040.01116.49
8.3.50.0070.00718.11
8.3.40.0090.00920.27
8.3.30.0080.00519.17
8.3.20.0030.00524.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.260.0140.00416.66
8.2.250.0100.01018.62
8.2.240.0130.01018.61
8.2.230.0040.00420.94
8.2.220.0120.00337.54
8.2.210.0040.01526.77
8.2.200.0030.00616.60
8.2.190.0150.00016.75
8.2.180.0110.00425.92
8.2.170.0120.00318.88
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0110.00018.05
8.2.110.0030.00822.24
8.2.100.0060.00617.91
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0030.00619.77
8.2.30.0000.00917.95
8.2.20.0000.00820.51
8.2.10.0040.00417.99
8.2.00.0000.00719.27
8.1.300.0060.00320.25
8.1.290.0030.00618.88
8.1.280.0180.00425.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.92
8.1.230.0040.00722.07
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00517.22
8.1.190.0030.00617.35
8.1.180.0030.00618.10
8.1.170.0030.00618.58
8.1.160.0000.00818.88
8.1.150.0060.00318.66
8.1.140.0000.00717.52
8.1.130.0000.00818.82
8.1.120.0030.00617.48
8.1.110.0040.00417.47
8.1.100.0000.00717.46
8.1.90.0070.00017.36
8.1.80.0050.00217.49
8.1.70.0040.00417.48
8.1.60.0090.00017.45
8.1.50.0000.00817.48
8.1.40.0240.00017.56
8.1.30.0150.00017.52
8.1.20.0070.00717.52
8.1.10.0100.00517.56
8.1.00.0110.00417.44
8.0.300.0000.01118.77
8.0.290.0000.00816.63
8.0.280.0000.00920.18
8.0.270.0000.00716.77
8.0.260.0030.00318.37
8.0.250.0000.00716.87
8.0.240.0030.00316.90
8.0.230.0030.00616.86
8.0.220.0060.00016.78
8.0.210.0070.00016.91
8.0.200.0000.00716.94
8.0.190.0080.00016.96
8.0.180.0050.00316.82
8.0.170.0100.00316.88
8.0.160.0040.00416.84
8.0.150.0090.00016.75
8.0.140.0120.00216.77
8.0.130.0100.00716.88
8.0.120.0180.00016.85
8.0.110.0100.00516.74
8.0.100.0130.00716.77
8.0.90.0130.00816.75
8.0.80.0130.00816.75
8.0.70.0160.00816.73
8.0.60.0160.00016.79
8.0.50.0120.00316.79
8.0.30.0110.00316.78
8.0.20.0130.00016.91
8.0.10.0100.00616.95
7.4.330.0030.00315.55
7.4.320.0040.00416.48
7.4.300.0000.00616.44
7.4.290.0030.00316.49
7.4.280.0160.00016.47
7.4.270.0170.00316.43
7.4.260.0130.00416.61
7.4.250.0140.00616.54
7.4.240.0190.00016.59
7.4.230.0140.00316.47
7.4.220.0000.01616.49
7.4.210.0150.00416.61
7.4.200.0140.00616.58
7.4.190.0190.00016.50
7.4.180.0100.00716.63
7.4.160.0110.00716.55
7.4.150.0140.00516.51
7.4.140.0170.00216.40
7.4.130.0150.00716.43
7.4.120.0140.00516.31
7.4.110.0120.00016.45
7.4.100.0050.00516.49
7.4.90.0050.00516.25
7.4.80.0070.00316.45
7.4.70.0030.00916.40
7.4.60.0130.00316.55
7.4.50.0160.00316.21
7.4.40.0110.00416.35
7.4.30.0100.00516.46
7.4.20.0140.00316.33
7.4.10.0120.00616.34
7.4.00.0160.00316.27

preferences:
60.35 ms | 403 KiB | 5 Q