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);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Notice: Undefined variable: _SESSION in /in/4fnZM on line 9
Output for hhvm-3.15.4
Array ( )