3v4l.org

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

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.0170.08320.10
7.0.00.0130.04720.22
5.6.160.0000.06320.44
5.6.150.0100.07718.17
5.6.140.0030.08318.21
5.6.130.0030.08018.19
5.6.120.0030.04321.00
5.6.110.0030.04021.03
5.6.100.0070.04020.98
5.6.90.0170.06021.02
5.6.80.0030.05320.45
5.5.300.0070.05318.07
5.5.290.0030.04017.95
5.5.280.0030.05720.90
5.5.270.0130.07320.79
5.5.260.0030.08320.87
5.5.250.0000.04320.55
5.5.240.0130.08020.35

preferences:
144.57 ms | 1386 KiB | 7 Q