3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo phpversion(); declare(strict_types=1); function foo(int $foo) { echo $foo; } foo(1); foo('hi');

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.00.0130.08020.13
5.6.160.0070.05720.46
5.6.150.0170.07718.20
5.6.140.0070.03718.25
5.6.130.0100.06318.23
5.6.120.0000.05021.14
5.6.110.0070.05721.05
5.6.100.0100.05321.03
5.6.90.0070.08321.11
5.6.80.0130.07320.38
5.5.300.0100.07717.95
5.5.290.0070.08317.98
5.5.280.0030.04320.95
5.5.270.0130.03320.84
5.5.260.0030.09320.77
5.5.250.0030.08720.79
5.5.240.0270.06320.13

preferences:
140.8 ms | 1398 KiB | 7 Q