3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array("a"=>"red","b"=>"green","c"=>"blue"); $Array = array_shift($a => $b); foreach($Array as $Key => $Value) { echo $Key . " - " . $Value; }

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.6.80.0100.08020.38
5.6.70.3970.04020.36
5.5.240.0230.02320.27
5.4.400.0870.05019.02
5.4.390.0230.04718.75
5.4.380.0200.05018.53
5.4.370.0170.05318.46
5.4.360.0130.05718.59
5.4.350.0170.05718.53
5.4.340.0170.05718.61
5.4.320.0130.06018.69
5.4.310.0200.05018.59
5.4.300.0230.05318.53
5.4.290.0130.05318.69
5.4.280.0170.05318.73
5.4.270.0230.04718.61
5.4.260.0230.07018.83
5.4.250.0270.05318.62
5.4.240.0200.05018.59
5.4.230.0100.06318.73
5.4.220.0130.05718.62
5.4.210.0200.04718.77
5.4.200.0200.05316.60
5.4.190.0170.05318.68
5.4.180.0130.05718.57
5.4.170.0230.05018.79
5.4.160.0100.05718.48
5.4.150.0230.04718.55
5.4.140.0130.05316.43
5.4.130.0200.04316.32
5.4.120.0170.04716.19
5.4.110.0170.04716.30
5.4.100.0300.03716.28
5.4.90.0370.05016.25
5.4.80.0270.05716.41
5.4.70.0130.06016.29
5.4.60.0100.05716.17
5.4.50.0100.05716.25
5.4.40.0170.05316.28
5.4.30.0170.05016.21
5.4.20.0130.05716.15
5.4.10.0170.05016.12
5.4.00.0170.05015.80
5.3.290.0200.06314.66
5.3.280.0100.06014.68
5.3.270.0230.04714.59
5.3.260.0270.04314.50
5.3.250.0100.05714.68
5.3.240.0100.05714.58
5.3.230.0130.05314.65
5.3.220.0330.03714.60
5.3.210.0170.07314.64
5.3.200.0130.05714.57
5.3.190.0330.03714.60
5.3.180.0170.05014.65
5.3.170.0170.05314.66
5.3.160.0170.05314.55
5.3.150.0300.04314.54
5.3.140.0170.05014.54
5.3.130.0230.04714.65
5.3.120.0170.05314.64
5.3.110.0200.06014.63
5.3.100.0200.06713.97
5.3.90.0230.06314.05
5.3.80.0200.04713.91
5.3.70.0070.06014.00
5.3.60.0330.05013.99
5.3.50.0200.06713.97
5.3.40.0200.04713.89
5.3.30.0100.06013.94
5.3.20.0170.06713.80
5.3.10.0170.07013.63
5.3.00.0130.07013.74
5.2.170.0130.04711.05
5.2.160.0100.04311.11
5.2.150.0200.03311.09
5.2.140.0130.04011.10
5.2.130.0130.04011.15
5.2.120.0200.05711.08
5.2.110.0170.05011.13
5.2.100.0230.04711.16
5.2.90.0130.05711.14
5.2.80.0130.06011.25
5.2.70.0130.05011.16
5.2.60.0130.03711.03
5.2.50.0130.04010.98
5.2.40.0070.04311.04
5.2.30.0130.03710.92
5.2.20.0170.03311.07
5.2.10.0170.03010.85
5.2.00.0100.04010.77
5.1.60.0100.0339.95
5.1.50.0100.03310.06
5.1.40.0000.0439.96
5.1.30.0170.02310.43
5.1.20.0030.04010.36
5.1.10.0230.03310.20
5.1.00.0030.04010.09
5.0.50.0130.0208.67
5.0.40.0100.0238.38
5.0.30.0070.0438.25
5.0.20.0000.0338.29
5.0.10.0070.0278.21
5.0.00.0070.0438.19
4.4.90.0100.0235.92
4.4.80.0100.0175.90
4.4.70.0030.0235.88
4.4.60.0030.0235.89
4.4.50.0070.0205.90
4.4.40.0030.0375.89
4.4.30.0000.0305.88
4.4.20.0030.0305.92
4.4.10.0030.0305.90
4.4.00.0030.0375.91
4.3.110.0070.0205.80
4.3.100.0070.0205.74
4.3.90.0070.0205.80
4.3.80.0030.0335.87
4.3.70.0000.0235.83
4.3.60.0000.0235.84
4.3.50.0130.0135.84
4.3.40.0070.0335.86
4.3.30.0030.0234.66
4.3.20.0130.0174.55
4.3.10.0030.0234.47
4.3.00.0070.0237.09

preferences:
128.84 ms | 1398 KiB | 7 Q