3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); class test { function test() { $bar = &$_SESSION['foo']; } } var_dump($_SESSION['foo']); $test=new test(); $foo = 1; session_write_close();

preferences:
31.24 ms | 402 KiB | 5 Q