3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createMultiplier($a) { return function ($b) use ($a) { return $a*$b; } } $multiply_by_5 = createMultiplier(5); echo $multiply_by_5(2);

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.0000.09720.09
5.6.160.0070.05720.50
5.6.150.0070.04018.19
5.6.140.0130.07018.18
5.6.130.0100.04318.25
5.6.120.0100.08021.13
5.6.110.0130.06721.05
5.6.100.0070.06720.95
5.6.90.0170.07721.14
5.6.80.0100.06720.39
5.5.300.0100.07717.99
5.5.290.0100.07717.92
5.5.280.0000.06320.78
5.5.270.0070.05720.84
5.5.260.0070.04320.98
5.5.250.0100.09320.50
5.5.240.0130.03720.35

preferences:
146.2 ms | 1394 KiB | 7 Q