3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hewan=array("a"=>"angsa","b"=>"bebek","c"=>"capung","d"=>"domba"); function proses(&$items,$key,$prefix){ $items="$item : $prefix"; } function tampil($item1,$key) { echo "$key.$item1 \n"; } array_walk($hewan,"tampil"); echo "after proses" array_walk($hewan,"proses"); ?>

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.0270.08020.16
7.0.10.0170.07720.23
7.0.00.0130.07720.37
5.6.170.0300.07020.45
5.6.160.0170.07320.46
5.6.150.0100.07018.29
5.6.140.0100.07718.18
5.6.130.0170.07718.18
5.6.120.0100.07721.02
5.6.110.0070.08720.90
5.6.100.0100.04320.98
5.6.90.0070.08321.14
5.6.80.0200.06320.36
5.5.310.0370.06020.27
5.5.300.0000.09017.95
5.5.290.0100.06717.92
5.5.280.0000.04720.80
5.5.270.0070.06320.68
5.5.260.0030.08320.65
5.5.250.0030.04720.66
5.5.240.0230.07320.25

preferences:
142.97 ms | 1398 KiB | 8 Q