3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function func() { $user=array( 'user_id'=>123 ); $userId = $user['user_id']; $user=NULL; return $userId; } echo func(); ?>
Output for 4.3.0 - 7.1.0
123