3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(array('version'=>1)); $arr[] = array('version'=>2); var_dump($arr); echo max($arr);
based on 98auH
Output for 5.4.0 - 7.2.0
array(2) { [0]=> array(1) { ["version"]=> int(1) } [1]=> array(1) { ["version"]=> int(2) } } Notice: Array to string conversion in /in/KJcNv on line 6 Array
Output for 4.3.0 - 5.3.29
array(2) { [0]=> array(1) { ["version"]=> int(1) } [1]=> array(1) { ["version"]=> int(2) } } Array