3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hashs = array(); $vals = array(); $m = 0; for($i = 0; $i < 20; $i++){ $hashs[] = md5(rand()); $val = rand(); $vals[] = array("Preis" => $val); $m = max($val, $m); } $groups = array_combine($hashs, $vals); $prices = array_column($groups, "Preis"); echo max($prices); echo ($m == max($prices))?"yes":"nope";
Output for 7.1.0
1779939869yes
Output for 7.0.14
2014572913yes
Output for 7.0.6
2110181762yes
Output for 7.0.5
2099475980yes
Output for 7.0.4
2004138131yes
Output for 7.0.3
2110646886yes
Output for 7.0.2
2118490304yes
Output for 7.0.1
2098439745yes
Output for 7.0.0
1914873015yes
Output for 5.6.28
1754487006yes
Output for 5.6.21
2077604596yes
Output for 5.6.20
2003296412yes
Output for 5.6.19
1954907935yes
Output for 5.6.18
2072340737yes
Output for 5.6.17
2118090183yes
Output for 5.6.16
2076330860yes
Output for 5.6.15
2120398457yes
Output for 5.6.14
2112699368yes
Output for 5.6.13
2038622254yes
Output for 5.6.12
1957244827yes
Output for 5.6.11
2142468918yes
Output for 5.6.10
1747972157yes
Output for 5.6.9
2031457290yes
Output for 5.6.8
1902747008yes
Output for 5.6.7
2082712279yes
Output for 5.5.35
1905394138yes
Output for 5.5.34
2034243334yes
Output for 5.5.33
2145367859yes
Output for 5.5.32
2071331348yes
Output for 5.5.31
2137619238yes
Output for 5.5.30
2109229428yes
Output for 5.5.29
1821526098yes
Output for 5.5.28
2118861106yes
Output for 5.5.27
2059388489yes
Output for 5.5.26
1986272309yes
Output for 5.5.25
2138135877yes
Output for 5.5.24
2029156874yes
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/m7rDS on line 14
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/m7rDS on line 13
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/m7rDS on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/m7rDS on line 13