3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = " <?php session_start(); $test = 'test'; {$_SESSION['test']} = $test; header(\"Refresh: 0;url=/\"); ?> ";
based on iK3Gg
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: test in /in/fWq4I on line 5 Notice: Undefined variable: _SESSION in /in/fWq4I on line 7 Notice: Undefined variable: test in /in/fWq4I on line 7
Output for 5.3.21 - 5.6.28
Notice: Undefined variable: test in /in/fWq4I on line 7 Notice: Undefined variable: _SESSION in /in/fWq4I on line 7 Notice: Undefined variable: test in /in/fWq4I on line 11