3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test($foo): string { } } class Bar extends Foo { public function test($foo) { } }

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.00.0080.00614.78
7.3.120.0060.00914.60
7.3.110.0000.01314.75
7.3.100.0000.01214.58
7.3.90.0030.01114.68
7.3.80.0000.01514.56
7.3.70.0050.01014.49
7.3.60.0070.01314.35
7.3.50.0090.00614.49
7.3.40.0070.00714.61
7.3.30.0080.01114.52
7.3.20.0150.00614.45
7.3.10.0100.00314.52
7.3.00.0120.00614.34
7.2.250.0050.00914.62
7.2.240.0070.00614.93
7.2.230.0070.00714.83
7.2.220.0030.01114.46
7.2.210.0000.01614.67
7.2.200.0090.00914.41
7.2.190.0070.00714.53
7.2.180.0060.00914.59
7.2.170.0060.01514.56
7.2.160.0130.00714.60
7.2.150.0100.00714.68
7.2.140.0120.00814.64
7.2.130.0100.01314.66
7.2.120.0120.00614.74
7.2.110.0070.01014.56
7.2.100.0000.01714.39
7.2.90.0030.01314.56
7.2.80.0030.01214.67
7.2.70.0120.00314.61
7.2.60.0030.01214.78
7.2.50.0100.01014.61
7.2.40.0060.00914.79
7.2.30.0060.00914.82
7.2.20.0000.01614.62
7.2.10.0140.00314.88
7.2.00.0060.01014.75

preferences:
131.91 ms | 1432 KiB | 7 Q