3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( "name"=>"a", "id"=>"b", "date"=>"c", "name"=>"1", "id"=>"2", "date"=>"3" ); echo end($array['id']);
Output for 5.3.0 - 7.1.0
Warning: end() expects parameter 1 to be array, string given in /in/co8OC on line 10
Output for 4.3.2 - 5.2.17
Warning: end(): Passed variable is not an array or object in /in/co8OC on line 10
Output for 4.3.0 - 4.3.1
Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/co8OC on line 10