3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function open() {} function close() {} function read() {} function write() {} function destroy() {} function gc() {} } $session_handler = new Foo; session_set_save_handler( array($session_handler, 'open'), array($session_handler, 'close'), array($session_handler, 'read'), array($session_handler, 'write'), array($session_handler, 'destroy'), array($session_handler, 'gc'));
based on TlTji
Output for 4.3.0 - 7.2.0