3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; $b = array('aa','bb', 'aa', 'cc'); $c = array_unique (array_merge ($a as array(), $b)); print_r($c);

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.0370.06720.08
7.0.10.0030.05720.23
7.0.00.0070.07020.15
5.6.170.0300.07320.54
5.6.160.0070.05320.39
5.6.150.0070.04018.15
5.6.140.0100.07718.21
5.6.130.0070.07718.18
5.6.120.0070.05320.98
5.6.110.0070.05020.98
5.6.100.0130.07320.98
5.6.90.0270.07020.96
5.6.80.0100.08020.48
5.5.310.0170.04320.24
5.5.300.0070.04717.98
5.5.290.0100.07318.07
5.5.280.0100.08020.65
5.5.270.0030.08720.73
5.5.260.0070.04020.86
5.5.250.0070.04720.54
5.5.240.0070.06320.04

preferences:
143.03 ms | 1394 KiB | 7 Q