3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function oeffne($speicherpfad, $session_name) { echo $session_name; return(true); } function schliesse() { echo 'close'; return(true); } function lese($id) { echo 'read'; return '' } function schreibe($id, $sess_daten) {echo 'write';return true; } function loesche($id) { echo 'destory'; return true; } function gc($maxlifetime) { echo 'gc'; return true; } session_set_save_handler("oeffne", "schliesse", "lese", "schreibe", "loesche", "gc"); session_start();
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '}' in /in/fePIP on line 20
Process exited with code 255.