3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $SESSION=array(); $POST=array(); $SESSION[0]='asd'; $SESSIONS[1]='bsa'; $POST['auth']='ololo'; $POST['auth1']='ololos'; $SESSION = array_replace($SESSION, $POST); print_r($SESSION);
based on 4fnZM
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Array ( [0] => asd [auth] => ololo [auth1] => ololos )