3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "hola"; function request($value,$callback){ if($callback){ call_user_func($callback,array("asd"=>&$a)); }else{ echo "NO_CALLBACK"; } } request($b,function($array){ $array['asd'] = "adios"; echo $a; } with $a);

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.07320.22
7.0.10.0000.07320.06
7.0.00.0070.04020.06
5.6.170.0300.04720.44
5.6.160.0170.04020.39
5.6.150.0070.05018.28
5.6.140.0130.07318.19
5.6.130.0070.04318.17
5.6.120.0030.04320.96
5.6.110.0100.08021.05
5.6.100.0070.06721.13
5.6.90.0030.05321.04
5.6.80.0070.08720.40
5.5.310.0330.05720.27
5.5.300.0070.04317.98
5.5.290.0030.05318.09
5.5.280.0100.06020.82
5.5.270.0070.06720.63
5.5.260.0100.07020.73
5.5.250.0130.06720.69
5.5.240.0170.07020.04

preferences:
141.06 ms | 1394 KiB | 7 Q