3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends SessionHandler implements SessionHandlerInterface { public function __construct() { if (empty($_COOKIE['PHPSESSID']) OR is_array($_COOKIE['PHPSESSID']) OR $_COOKIE['PHPSESSID'] !== 'foobarbazqux') { unset($_COOKIE['PHPSESSID']); } } } $foo = new Foo(); ini_set('session.use_strict_mode', 1); session_set_save_handler($foo, false); session_start(); var_dump(session_id());
Output for git.master
string(32) "39d0fc73264b39a57baaa56b04c7b331"
Output for git.master_jit
string(32) "4248603f52140cc6974bd1663fb5b908"
Output for rfc.property-hooks
string(32) "bc18d5a31962d4c00e68eda2a57cfef5"

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