3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test implements SessionHandlerInterface { public function close ( ){} public function destroy ( $session_id ){} public function gc ( $maxlifetime ){} public function open ( $save_path , $session_name ){} public function read ( $session_id ){} public function write ( $session_id , $session_data ){} } $test = new Test(); session_set_save_handler($test); session_start();
based on iO4NX
Output for 7.2.0 - 7.3.0rc3
Warning: session_start(): Session callback expects true/false return value in /in/sK30J on line 15 Warning: session_start(): Session callback expects true/false return value in /in/sK30J on line 15 Warning: session_start(): Failed to initialize storage module: user (path: ) in /in/sK30J on line 15
Output for 7.1.0 - 7.1.20
Warning: session_start(): Session callback expects true/false return value in /in/sK30J on line 15 Warning: session_start(): Session callback expects true/false return value in /in/sK30J on line 15 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /in/sK30J on line 15
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Warning: session_start(): Session callback expects true/false return value in /in/sK30J on line 15 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /in/sK30J on line 15 Warning: Unknown: Session callback expects true/false return value in Unknown on line 0
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught TypeError: Argument 2 passed to __SystemLib\session_set_save_handler() must be an instance of bool, null given in /in/sK30J:14 Stack trace: #0 /in/sK30J(14): session_set_save_handler() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30