3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo(string $s = null, string ...$j) { } } class Bar extends Foo { public function doFoo(string $s = null, string ...$j, $k = null) { } }

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)
7.4.60.0090.00616.34
7.4.50.0060.01016.30
7.4.40.0070.01016.29
7.4.30.0120.00316.45
7.4.20.0120.00416.10
7.4.10.0040.01216.54
7.4.00.0030.01316.35
7.3.180.0030.01316.40
7.3.170.0070.01016.43
7.3.160.0100.00616.23
7.3.150.0080.00816.27
7.3.140.0090.00916.49
7.3.130.0100.00716.23
7.3.120.0040.01216.27
7.3.110.0120.00416.22
7.3.100.0040.01216.23
7.3.90.0090.00616.13
7.3.80.0030.01316.50
7.3.70.0100.00616.28
7.3.60.0070.01016.06
7.3.50.0170.00016.27
7.3.40.0130.00316.31
7.3.30.0070.01016.38
7.3.20.0170.00316.31
7.3.10.0070.01716.38
7.3.00.0100.01316.32
7.2.310.0070.01116.30
7.2.300.0100.00716.39
7.2.290.0070.01116.39
7.2.280.0030.01316.43
7.2.270.0030.01216.29
7.2.260.0140.00316.15
7.2.250.0150.00316.48
7.2.240.0110.00716.28
7.2.230.0060.00916.23
7.2.220.0110.00516.39
7.2.210.0090.01316.53
7.2.200.0120.00816.30
7.2.190.0100.00616.46
7.2.180.0030.01316.38
7.2.170.0030.01516.51
7.2.160.0100.00716.24
7.2.150.0160.01116.48
7.2.140.0150.01316.49
7.2.130.0070.00916.31
7.2.120.0150.00916.38
7.2.110.0090.00416.24
7.2.100.0150.00916.54
7.2.90.0090.01616.37
7.2.80.0070.01116.43
7.2.70.0080.01416.41
7.2.60.0240.00816.39
7.2.50.0140.01216.30
7.2.40.0160.00716.34
7.2.30.0150.00816.43
7.2.20.0120.00716.21
7.2.10.0150.01516.27
7.2.00.0050.00416.41

preferences:
142.38 ms | 1432 KiB | 7 Q