3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1){ test(9, 100); } function test(int $a, string $b) { var_dump($a, $b); }

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.0.10.0130.07720.20
7.0.00.0030.06719.95
5.6.160.0070.05720.44
5.6.150.0030.07018.25
5.6.140.0070.04018.17
5.6.130.0100.07718.24
5.6.120.0070.08721.05
5.6.110.0030.08321.14
5.6.100.0070.07020.98
5.6.90.0100.08721.10
5.6.80.0070.06020.39
5.5.300.0030.05317.98
5.5.290.0070.08017.93
5.5.280.0130.06320.89
5.5.270.0070.05020.84
5.5.260.0030.08720.77
5.5.250.0070.03720.79
5.5.240.0070.03020.29

preferences:
145.5 ms | 1394 KiB | 7 Q