3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('id' = > 'a','b','c','d','e','f','g'); $new_value = $array['id']; unset($arr['id']); array_unshift($array, $new_value); var_dump($array);

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)
5.4.310.1630.03319.20
5.4.300.1700.02719.16
5.4.290.1670.03318.98
5.4.280.1570.03719.06
5.4.270.1700.04019.02
5.4.260.1500.04319.19
5.4.250.1330.03318.99
5.4.240.0000.04018.97
5.4.230.0030.03718.95
5.4.220.0800.05319.23
5.4.210.1670.04318.84
5.4.200.1430.04019.07
5.4.190.0530.04019.21
5.4.180.0030.04719.16
5.4.170.0100.03019.07
5.4.160.0000.04019.22
5.4.150.1400.03319.07
5.4.140.1370.03316.38
5.4.130.1430.03316.41
5.4.120.1770.04016.50
5.4.110.1330.04016.36
5.4.100.1430.04016.56
5.4.90.1470.04016.55
5.4.80.1370.02716.34
5.4.70.1000.04316.53
5.4.60.0070.06016.22
5.4.50.0000.03716.43
5.4.40.0970.04016.55
5.4.30.1430.03716.42
5.4.20.0400.03016.48
5.4.10.0070.04316.43
5.4.00.0070.04715.91
5.3.280.1300.05014.53
5.3.270.1030.04714.47
5.3.260.1270.04014.62
5.3.250.1430.04014.65
5.3.240.1300.03714.46
5.3.230.1530.05014.43
5.3.220.1200.03714.66
5.3.210.1700.04314.51
5.3.200.1670.04014.52
5.3.190.0370.04314.42
5.3.180.0000.03714.42
5.3.170.0170.05014.42
5.3.160.1570.03314.66
5.3.150.1300.04314.58
5.3.140.1300.04014.41
5.3.130.1270.04014.41
5.3.120.1300.04314.39
5.3.110.1530.04714.41
5.3.100.1530.06313.92
5.3.90.1330.03313.88
5.3.80.1500.03713.96
5.3.70.1400.03313.79
5.3.60.1130.04013.95
5.3.50.1300.03313.79
5.3.40.0530.04313.82
5.3.30.0000.05313.86
5.3.20.0070.04013.53
5.3.10.0870.04313.60
5.3.00.1370.05013.59
5.2.170.1170.04311.16
5.2.160.1030.03011.09
5.2.150.1230.04011.05
5.2.140.1100.02711.15
5.2.130.1270.03710.93
5.2.120.1230.04011.04
5.2.110.1300.03311.15
5.2.100.1130.02711.12
5.2.90.1270.04311.15
5.2.80.1130.02711.12
5.2.70.1070.02710.94
5.2.60.1100.02710.90
5.2.50.0030.02710.84
5.2.40.0030.03310.84
5.2.30.0030.05010.91
5.2.20.0300.03310.90
5.2.10.0930.02710.93
5.2.00.0800.03310.68
5.1.60.1000.0309.92
5.1.50.0870.0309.98
5.1.40.0900.0239.90
5.1.30.1170.02710.39
5.1.20.0970.02710.32
5.1.10.1030.0409.93
5.1.00.0870.02710.11
5.0.50.0530.0208.44
5.0.40.0500.0238.45
5.0.30.0230.0308.30
5.0.20.0630.0278.17
5.0.10.0630.0308.14
5.0.00.0370.0308.38
4.4.90.0530.0137.94
4.4.80.0570.0237.94
4.4.70.0470.0177.94
4.4.60.0470.0137.94
4.4.50.0400.0207.94
4.4.40.0370.0307.94
4.4.30.0030.0137.94
4.4.20.0000.0237.94
4.4.10.0030.0237.94
4.4.00.0000.0377.94
4.3.110.0030.0177.94
4.3.100.0000.0177.94
4.3.90.0000.0177.94
4.3.80.0130.0237.94
4.3.70.0370.0207.94
4.3.60.0500.0177.94
4.3.50.0430.0207.94
4.3.40.0570.0377.94
4.3.30.0230.0177.94
4.3.20.0270.0177.94
4.3.10.0370.0307.94
4.3.00.0270.0177.94

preferences:
136.94 ms | 1398 KiB | 7 Q