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'] = date('Y-m-d H:i:s'); } $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(19) "2014-08-04 08:55:46" string(19) "2014-08-04 08:55:46" string(44) "session id1 8a8811f63511e1d1a902d5650478a10e" string(44) "session id2 040b4cdbd1a5a1d2551d90f488978dc8"
Output for git.master_jit
string(19) "2014-08-04 08:55:46" string(19) "2014-08-04 08:55:46" string(44) "session id1 3baa1923957a2ab8218e11dc409462c3" string(44) "session id2 4d8972104e9cfeedcf67016341392b7d"
Output for rfc.property-hooks
string(19) "2014-08-04 08:55:46" string(19) "2014-08-04 08:55:46" string(44) "session id1 2fc78716529b25835de5801721e405b8" string(44) "session id2 5830f39cd8745860c2826440135740a6"

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.91 ms | 401 KiB | 8 Q