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));
Output for 7.1.0
21134830011
Output for 7.0.14
21440553881
Output for 7.0.6
20714898841
Output for 7.0.5
20159780831
Output for 7.0.4
21124625521
Output for 7.0.3
21396773491
Output for 7.0.2
18612123131
Output for 7.0.1
20575916571
Output for 7.0.0
20158395811
Output for hhvm-3.12.0
20824100101
Output for hhvm-3.10.0
20599348091
Output for 5.6.28
21163667431
Output for 5.6.21
20466010711
Output for 5.6.20
21083017621
Output for 5.6.19
19221287741
Output for 5.6.18
20006204901
Output for 5.6.17
20274885861
Output for 5.6.16
21194164201
Output for 5.6.15
20622036801
Output for 5.6.14
20365254131
Output for 5.6.13
18814351131
Output for 5.6.12
20909943521
Output for 5.6.11
21286364471
Output for 5.6.10
20799319391
Output for 5.6.9
21277131491
Output for 5.6.8
20501348321
Output for 5.6.7
21338571191
Output for 5.5.35
20775328951
Output for 5.5.34
20971319831
Output for 5.5.33
19867126571
Output for 5.5.32
20637568791
Output for 5.5.31
20570733431
Output for 5.5.30
20849822471
Output for 5.5.29
19373523541
Output for 5.5.28
20829230841
Output for 5.5.27
18570689961
Output for 5.5.26
20794114161
Output for 5.5.25
20743820381
Output for 5.5.24
21150289681
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/serYE 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/serYE 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/serYE 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/serYE on line 13