3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(2,3,4,5,7); echo end($arr) . "\n"; var_export($arr);
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
7 array ( 0 => 2, 1 => 3, 2 => 4, 3 => 5, 4 => 7, )