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; } use $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.0200.08320.16
7.0.10.0000.05320.26
7.0.00.0100.08020.06
5.6.170.0300.07320.56
5.6.160.0030.04720.50
5.6.150.0030.08718.16
5.6.140.0030.08018.18
5.6.130.0100.08318.11
5.6.120.0030.06321.00
5.6.110.0130.06321.03
5.6.100.0030.07021.13
5.6.90.0100.08320.99
5.6.80.0130.07320.39
5.5.310.0370.07020.34
5.5.300.0130.06717.98
5.5.290.0070.05317.92
5.5.280.0130.07720.73
5.5.270.0100.05720.93
5.5.260.0000.06320.86
5.5.250.0070.05720.71
5.5.240.0170.04720.16

preferences:
139.73 ms | 1394 KiB | 7 Q