3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldArray = array( array("country", "state", "city", "name"), array("Argentina", "Corrientes", "Corrientes", "Jorge"), array("Argentina", "Chaco", "Resistencia", "Mariano") ); $arr[] = array_shift($oldArray); $new_arr = array_map('array_combine',&$arr,$oldArray); print_r($new_arr);

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.0070.08320.23
5.6.160.0100.08020.40
5.6.150.0000.08018.12
5.6.140.0100.04318.21
5.6.130.0100.08018.22
5.6.120.0070.06321.11
5.6.110.0070.09020.89
5.6.100.0100.08321.00
5.6.90.0070.04021.07
5.6.80.0170.07020.28
5.5.300.0100.06017.89
5.5.290.0000.07318.00
5.5.280.0170.04320.80
5.5.270.0070.08020.75
5.5.260.0100.05720.87
5.5.250.0030.04020.49
5.5.240.0270.07320.17

preferences:
136.68 ms | 1394 KiB | 7 Q