3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("php", 4.0, array("green", "red")); $input2 = $input; // add ref count $ar = &$input2[0]; print_r($input2); $ar = 100; print_r($input2); $b = "bbbbbbb"; $ar = &b; print_r($input2); /* $reversed = array_reverse($input); $preserved = array_reverse($input, true); print_r($input); print_r($reversed); print_r($preserved); */

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.00.0030.04720.18
5.6.160.0000.04320.54
5.6.150.0130.07718.14
5.6.140.0230.06318.20
5.6.130.0070.07718.15
5.6.120.0030.05021.00
5.6.110.0000.04320.98
5.6.100.0200.06720.98
5.6.90.0130.06720.88
5.6.80.0100.08020.38
5.5.300.0100.07317.98
5.5.290.0030.07317.99
5.5.280.0100.05020.65
5.5.270.0000.04720.95
5.5.260.0070.08320.95
5.5.250.0030.04020.54
5.5.240.3830.03720.23

preferences:
133.84 ms | 1398 KiB | 7 Q