3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = Array( [0] => 2281 [1] => 2292 [2] => 2293 [3] => 2294 [4] => 2295 [5] => 2301 [6] => 2302 [7] => 2303 [8] => 2661 [9] => 2415 [10] => 2416 [11] => 2417 [12] => 2418 ); $arr2 = Array( [0] => 2281 [1] => 2292 [2] => 2293 [3] => 2294 [4] => 2295 [5] => 2301 [6] => 2302 [7] => 2303 [8] => 2661 [9] => 2415 [10] => 2416 [11] => 2417 [12] => 2418 ); $result = array_merge($arr1, $arr2); print_r($result);

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.0070.05020.34
7.0.10.0100.03720.25
7.0.00.0130.07720.06
5.6.170.0370.07020.47
5.6.160.0100.03720.50
5.6.150.0070.05018.18
5.6.140.0030.04018.29
5.6.130.0170.04318.15
5.6.120.0070.04321.05
5.6.110.0100.04720.98
5.6.100.0130.04021.07
5.6.90.0100.03320.92
5.6.80.0170.07020.36
5.5.310.0500.03720.41
5.5.300.0030.03717.98
5.5.290.0100.04717.99
5.5.280.0030.04020.96
5.5.270.0070.04720.77
5.5.260.0170.07020.96
5.5.250.0130.05320.57
5.5.240.0230.07020.36

preferences:
137.09 ms | 1398 KiB | 7 Q