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.0070.07720.29
5.6.160.0070.08720.44
5.6.150.0030.06318.25
5.6.140.0130.07018.28
5.6.130.0100.07018.19
5.6.120.0070.07321.03
5.6.110.0270.07321.05
5.6.100.0030.07321.00
5.6.90.0130.08020.99
5.6.80.0130.05720.48
5.5.300.0070.08318.00
5.5.290.0200.07017.99
5.5.280.0170.03720.88
5.5.270.0100.04720.95
5.5.260.0100.04020.96
5.5.250.0100.06720.62
5.5.240.0170.04720.19

preferences:
144.03 ms | 1398 KiB | 7 Q