3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_set_save_handler( function() {return true;}, function() {return true;}, function() {return true;}, function() {return true;}, function() { $contents = ob_get_contents(); ob_end_clean(); print substr($contents, 0, 5); print ' PHP '; print substr($contents, 5); return true; }, function(){return true;} ); session_start(); ob_start(); echo 'Hello'; echo 'World';
based on 13ts0
Output for 7.1.0 - 7.3.0rc3
Warning: session_start(): Failed to read session data: user (path: ) in /in/TR3dc on line 12 HelloWorld
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.0.26
HelloWorld