3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("AAA","AAA"); function abc($cc,&$aa,&$bb) { $arr = get_defined_vars(); unset($arr[cc]) print_r($arr); $aa = 2; $bb = 3; } abc(1);

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.04020.15
7.0.10.0070.04020.16
7.0.00.0030.04720.14
5.6.170.0230.06720.47
5.6.160.0100.08020.55
5.6.150.0070.05718.19
5.6.140.0030.08718.18
5.6.130.0000.05318.15
5.6.120.0070.07020.95
5.6.110.0200.07320.98
5.6.100.0070.04320.98
5.6.90.0130.08020.98
5.6.80.0070.08020.51
5.5.310.0170.05020.30
5.5.300.0030.04318.05
5.5.290.0100.07017.98
5.5.280.0070.05320.88
5.5.270.0100.05720.97
5.5.260.0000.04320.96
5.5.250.0130.06320.64
5.5.240.0030.05720.29

preferences:
143.55 ms | 1394 KiB | 7 Q