3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); $_SESSION['test'] = true; $var = array_merge(array(), $_SESSION); session_unset(); print_r($var);
Output for 5.6.0 - 7.3.1
Array ( [test] => 1 )