3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ( 'a' => 'Hello', 'b' => 'World'); array_walk($array, 'adda'); function adda(&$value, &$key) { $key = "a".$key; }

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)
5.4.40.0150.04011.98
5.4.30.0150.04011.97
5.4.20.0220.05411.97
5.4.10.0130.04511.97
5.4.00.0160.04311.47
5.3.140.0160.04312.66
5.3.130.0150.04612.66
5.3.120.0140.04812.66
5.3.110.0160.04412.66
5.3.100.0130.04512.12
5.3.90.0130.04312.08
5.3.80.0140.04712.08
5.3.70.0150.04312.08
5.3.60.0120.04812.07
5.3.50.0120.04412.00
5.3.40.0130.04812.00
5.3.30.0190.04911.95
5.3.20.0140.04111.73
5.3.10.0160.04011.69
5.3.00.0140.03911.67

preferences:
134.87 ms | 1399 KiB | 7 Q