3v4l.org

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

preferences:
34.71 ms | 405 KiB | 5 Q