3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?PHP session_start(); session_register("sess"); session_register("mode"); error_reporting(E_ERROR | E_PARSE); if (isset($_SESSION["sess"])) { if ($_SESSION["mode"]=="preview") $admin=false; else $admin=true; }else{ $admin=false; }
based on AQm9L
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function session_register() in /in/aIXHM:3 Stack trace: #0 {main} thrown in /in/aIXHM on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function session_register() in /in/aIXHM on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Function session_register() is deprecated in /in/aIXHM on line 3 Deprecated: Function session_register() is deprecated in /in/aIXHM on line 4
Output for 5.2.3 - 5.2.17
Output for 4.3.2 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/aIXHM on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/aIXHM:2) in /in/aIXHM on line 2
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/aIXHM on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/aIXHM:2) in /in/aIXHM on line 2