3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array( 'a' => 'a', 'b' => 'b', ); array_walk($var, function(value){ }); var_dump(key($var));

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.0170.04320.13
7.0.10.0130.07720.21
7.0.00.0130.08020.15
5.6.170.0270.06720.40
5.6.160.0100.07320.54
5.6.150.0030.08018.27
5.6.140.0070.06018.16
5.6.130.0100.05718.19
5.6.120.0130.04321.04
5.6.110.0070.07320.94
5.6.100.0170.06321.11
5.6.90.0100.06020.96
5.6.80.0070.06020.27
5.5.310.0270.04720.30
5.5.300.0000.04317.99
5.5.290.0130.07718.01
5.5.280.0000.05020.98
5.5.270.0100.05020.77
5.5.260.0070.04720.84
5.5.250.0130.08320.58
5.5.240.3230.04020.04

preferences:
139.28 ms | 939 KiB | 8 Q