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.0230.03719.06
5.4.260.0170.05319.09
5.4.250.0230.03319.05
5.4.240.0200.03319.14
5.4.230.0330.03719.32
5.4.220.0230.07019.19
5.4.210.0270.04019.25
5.4.200.0270.07318.98
5.4.190.0270.04719.07
5.4.180.0270.07319.05
5.4.170.0300.05719.21
5.4.160.0300.07719.04
5.4.150.0270.07019.13
5.4.140.0270.04716.33
5.4.130.0230.06016.34
5.4.120.0230.05716.45
5.4.110.0270.06716.38
5.4.100.0270.07016.45
5.4.90.0230.06716.52
5.4.80.0200.07016.50
5.4.70.0300.04316.34
5.4.60.0300.05316.38
5.4.50.0230.06316.48
5.4.40.0230.04316.53
5.4.30.0130.04316.55
5.4.20.0270.06316.32
5.4.10.0200.04316.42
5.4.00.0170.05015.95
5.3.280.0230.07014.54
5.3.270.0230.06014.45
5.3.260.0230.07014.63
5.3.250.0200.06714.45
5.3.240.0230.05714.45
5.3.230.0230.07314.59
5.3.220.0170.04014.55
5.3.210.0300.06314.59
5.3.200.0270.07014.55
5.3.190.0230.07014.51
5.3.180.0170.04014.50
5.3.170.0230.06714.44
5.3.160.0370.06314.58
5.3.150.0300.04314.59
5.3.140.0170.04714.61
5.3.130.0200.07714.39
5.3.120.0230.05714.39
5.3.110.0230.07014.40
5.3.100.0200.07313.93
5.3.90.0200.05313.95
5.3.80.0170.04313.96
5.3.70.0170.06313.93
5.3.60.0270.06313.84
5.3.50.0300.07313.92
5.3.40.0270.03713.89
5.3.30.0170.04713.93
5.3.20.0230.07013.53
5.3.10.0230.03313.75
5.3.00.0130.03713.50
5.2.170.0170.03312.09
5.2.160.0200.05712.09
5.2.150.0130.03312.09
5.2.140.0230.05312.09
5.2.130.0170.04312.09
5.2.120.0270.03012.09
5.2.110.0130.03712.09
5.2.100.0200.04312.09
5.2.90.0230.05312.09
5.2.80.0230.06312.09
5.2.70.0130.05712.09
5.2.60.0330.05312.09
5.2.50.0200.05012.09
5.2.40.0130.03312.09
5.2.30.0200.03312.09
5.2.20.0230.05712.09
5.2.10.0130.05712.09
5.2.00.0130.04312.09
5.1.60.0200.04312.09
5.1.50.0170.04312.09
5.1.40.0130.04012.09
5.1.30.0300.02312.09
5.1.20.0170.04712.09
5.1.10.0170.03012.09
5.1.00.0130.05012.09
5.0.50.0070.03012.09
5.0.40.0130.03012.09
5.0.30.0070.04312.09
5.0.20.0030.04312.09
5.0.10.0030.02712.09
5.0.00.0070.06312.09
4.4.90.0070.03312.09
4.4.80.0100.02312.09
4.4.70.0030.02312.09
4.4.60.0100.02712.09
4.4.50.0070.03312.09
4.4.40.0100.02712.09
4.4.30.0030.02012.09
4.4.20.0100.03312.09
4.4.10.0130.03012.09
4.4.00.0070.04312.09
4.3.110.0130.01712.09
4.3.100.0130.01712.09
4.3.90.0030.02712.09
4.3.80.0030.03712.09
4.3.70.0070.03312.09
4.3.60.0030.03312.09
4.3.50.0070.02312.09
4.3.40.0100.02712.09
4.3.30.0000.02312.09
4.3.20.0030.02712.09
4.3.10.0000.03712.09
4.3.00.0030.02312.09

preferences:
144.35 ms | 1398 KiB | 7 Q