3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $session_handler = '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 GYUsN
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Warning: session_set_save_handler(): Argument 1 is not a valid callback in /in/KuFdp on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: Argument 1 is not a valid callback
Output for 5.0.0 - 5.0.3
Fatal error: Class 'foo' not found in Unknown on line 0
Process exited with code 255.
Output for 4.3.0 - 4.3.10