3v4l.org

run code in 300+ PHP versions simultaneously
<?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'; session_destroy();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: session_start(): Failed to read session data: user (path: ) in /in/13ts0 on line 12 HelloWorld Warning: session_destroy(): Trying to destroy uninitialized session in /in/13ts0 on line 19

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
59.35 ms | 401 KiB | 8 Q