3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); session_start(); $session1 = session_id(); if (!isset($_SESSION['init'])) { $_SESSION['init'] = "foobar"; } $init1 = @$_SESSION['init']; session_regenerate_id(false); var_dump($init1); var_dump($_SESSION['init']); var_dump('session id1 ' . $session1); var_dump('session id2 ' . session_id()); ?>
Output for git.master
string(6) "foobar" string(6) "foobar" string(44) "session id1 d6853bfe22a181364982f6dc2a95c452" string(44) "session id2 16d5f4ab32ac7c92f45ee130a149220f"
Output for git.master_jit
string(6) "foobar" string(6) "foobar" string(44) "session id1 bba86dd91d69a06358aabc4192a4cc90" string(44) "session id2 b8955768cec29fe9ecbdb1818c02bc5c"
Output for rfc.property-hooks
string(6) "foobar" string(6) "foobar" string(44) "session id1 7e773c6235c7e07720fec0369f659685" string(44) "session id2 178a0fa3b1b9616415a22074bd39684b"

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