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.04320.09
7.0.10.0100.08320.22
7.0.00.0030.08720.33
5.6.170.0270.05720.50
5.6.160.0100.08320.50
5.6.150.0000.05018.12
5.6.140.0030.08318.15
5.6.130.0030.04718.29
5.6.120.0170.07320.98
5.6.110.0030.04720.96
5.6.100.0100.07321.08
5.6.90.0070.08320.97
5.6.80.0100.07320.45
5.5.310.0470.06020.28
5.5.300.0100.06718.08
5.5.290.0130.05017.95
5.5.280.0200.07320.94
5.5.270.0130.08320.95
5.5.260.0100.06020.94
5.5.250.0130.07720.71
5.5.240.0170.03720.29

preferences:
141.51 ms | 1394 KiB | 7 Q