3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( "0" => 12 , "1" => 17 , "2" => 5, "3" => 27, "4" => 5 ); print_r($array); $i=1; foreach($array as $key=>$values) { echo max($array)."rank is". $i."\n"; if(!in_array($values,$array)) $i++; unset($array($key)); }

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.270.0030.03712.36
5.4.260.0130.04719.00
5.4.250.0070.07018.89
5.4.240.0070.05718.88
5.4.230.0170.07018.75
5.4.220.0070.07718.86
5.4.210.0030.06318.89
5.4.200.0230.05318.68
5.4.190.0130.06718.74
5.4.180.0030.06718.88
5.4.170.0070.05318.89
5.4.160.0070.06718.75
5.4.150.0130.04718.69
5.4.140.0130.04316.28
5.4.130.0070.05016.50
5.4.120.0170.04316.56
5.4.110.0070.05016.40
5.4.100.0170.05316.24
5.4.90.0070.04716.20
5.4.80.0200.05316.27
5.4.70.0200.03716.50
5.4.60.0170.06316.39
5.4.50.0070.04716.38
5.4.40.0130.04316.46
5.4.30.0030.05316.36
5.4.20.0030.05016.37
5.4.10.0070.05016.17
5.4.00.0100.06315.71
5.3.280.0200.04314.47
5.3.270.0070.06714.46
5.3.260.0100.06314.76
5.3.250.0070.05314.62
5.3.240.0070.07714.55
5.3.230.0030.06014.75
5.3.220.0130.04714.58
5.3.210.0100.07014.57
5.3.200.0070.04714.58
5.3.190.0030.05314.57
5.3.180.0070.05314.57
5.3.170.0070.05014.59
5.3.160.0100.06314.59
5.3.150.0000.05314.53
5.3.140.0100.04314.35
5.3.130.0000.06314.59
5.3.120.0100.04714.54
5.3.110.0070.05014.40
5.3.100.0100.07014.05
5.3.90.0100.06713.72
5.3.80.0070.05013.86
5.3.70.0130.04314.07
5.3.60.0100.04713.87
5.3.50.0030.05014.10
5.3.40.0100.04714.10
5.3.30.0130.04013.85
5.3.20.0030.05313.70
5.3.10.0070.04713.66
5.3.00.0070.07013.59
5.2.170.0130.04011.00
5.2.160.0030.04311.24
5.2.150.0100.03711.06
5.2.140.0070.04011.15
5.2.130.0070.05011.21
5.2.120.0130.04711.11
5.2.110.0100.03310.86
5.2.100.0070.04011.11
5.2.90.0000.06010.98
5.2.80.0170.03011.09
5.2.70.0100.04311.11
5.2.60.0030.05310.82
5.2.50.0070.04011.12
5.2.40.0000.06710.99
5.2.30.0130.03011.08
5.2.20.0100.03311.11
5.2.10.0170.03710.76
5.2.00.0170.04710.48
5.1.60.0100.0539.92
5.1.50.0130.03010.15
5.1.40.0100.04310.17
5.1.30.0100.04710.41
5.1.20.0070.03310.52
5.1.10.0030.04710.09
5.1.00.0130.0339.95
5.0.50.0070.0338.43
5.0.40.0030.0378.43
5.0.30.0100.0378.24
5.0.20.0100.0208.34
5.0.10.0070.0238.08
5.0.00.0000.0478.11
4.4.90.0030.0207.43
4.4.80.0000.0237.43
4.4.70.0030.0237.43
4.4.60.0030.0277.43
4.4.50.0100.0237.43
4.4.40.0100.0407.43
4.4.30.0030.0307.43
4.4.20.0100.0177.43
4.4.10.0000.0237.43
4.4.00.0070.0307.43
4.3.110.0000.0237.43
4.3.100.0000.0237.43
4.3.90.0000.0237.43
4.3.80.0000.0377.43
4.3.70.0030.0207.43
4.3.60.0000.0207.43
4.3.50.0000.0307.43
4.3.40.0000.0507.43
4.3.30.0000.0337.43
4.3.20.0000.0307.43
4.3.10.0030.0207.43
4.3.00.0030.0237.23

preferences:
135.18 ms | 1394 KiB | 7 Q