3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething(int $value): int { $value = "" . $value; return $value } doSomething(12);

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.20.0300.05720.26
7.0.10.0100.08320.24
7.0.00.0130.04020.31
5.6.170.0570.06020.47
5.6.160.0170.05020.47
5.6.150.0070.03718.19
5.6.140.0170.07018.14
5.6.130.0030.04718.18
5.6.120.0070.08721.02
5.6.110.0030.06021.00
5.6.100.0130.07321.13
5.6.90.0200.07321.13
5.6.80.0170.06320.50
5.5.310.0330.08020.30
5.5.300.0070.04718.07
5.5.290.0070.06717.95
5.5.280.0030.08020.73
5.5.270.0030.07720.64
5.5.260.0170.08720.86
5.5.250.0070.07020.43
5.5.240.0200.05320.13

preferences:
133.93 ms | 1394 KiB | 7 Q