3v4l.org

run code in 300+ PHP versions simultaneously
<?php $session_handler = function () {}; 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'));
Output for git.master, git.master_jit
Fatal error: Uncaught TypeError: session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "Closure::open" not found or invalid function name in /in/aNqHl:3 Stack trace: #0 /in/aNqHl(3): session_set_save_handler(Array, Array, Array, Array, Array, Array) #1 {main} thrown in /in/aNqHl on line 3
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught TypeError: session_set_save_handler(): Argument #1 ($open) must be a valid callback, class Closure does not have a method "open" in /in/aNqHl:3 Stack trace: #0 /in/aNqHl(3): session_set_save_handler(Array, Array, Array, Array, Array, Array) #1 {main} thrown in /in/aNqHl on line 3
Process exited with code 255.

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:
43.29 ms | 401 KiB | 8 Q