3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hashs = array(); $vals = array(); for($i = 0; $i < 20; $i++){ $hashs[] = md5(rand()); $vals[] = array("Preis" => rand()); } $groups = array_combine($hashs, $vals); $prices = array_column($groups, "Preis"); echo max($prices);
Output for 7.1.0
2045802028
Output for 7.0.14
1976239583
Output for 7.0.6
2095058928
Output for 7.0.5
2144534897
Output for 7.0.4
1999991081
Output for 7.0.3
2142677433
Output for 7.0.2
1991975913
Output for 7.0.1
2082040881
Output for 7.0.0
2125058386
Output for hhvm-3.12.0
2036864511
Output for hhvm-3.10.0
2123103128
Output for 5.6.28
2115368559
Output for 5.6.21
2089210921
Output for 5.6.20
2051627133
Output for 5.6.19
2146899892
Output for 5.6.18
2142802920
Output for 5.6.17
2006599800
Output for 5.6.16
2091717404
Output for 5.6.15
2141048581
Output for 5.6.14
2123386785
Output for 5.6.13
2123376902
Output for 5.6.12
2053321114
Output for 5.6.11
2070779201
Output for 5.6.10
2049014846
Output for 5.6.9
1864751779
Output for 5.6.8
2075347623
Output for 5.6.7
1948447747
Output for 5.5.35
2034950776
Output for 5.5.34
1992362586
Output for 5.5.33
1913501090
Output for 5.5.32
1969045919
Output for 5.5.31
2065279724
Output for 5.5.30
2076273250
Output for 5.5.29
2139412053
Output for 5.5.28
2137461334
Output for 5.5.27
2048026973
Output for 5.5.26
2132011026
Output for 5.5.25
1987336454
Output for 5.5.24
1737560236
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/27pEJ on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/27pEJ on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/27pEJ on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/27pEJ on line 10