3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 'user_id' => 10, 'id' => 2, 'user' => 'Nakiya', ); /** * Get the last value from an array. */ function last($array) { return array_pop($array); } var_dump(last($array));

preferences:
24.9 ms | 405 KiB | 5 Q