3v4l.org

run code in 300+ PHP versions simultaneously
<pre><?php $path = ini_get('session.save_path') . '/sess_'; var_dump($path); session_start(); // starts session & creates and locks file var_dump( is_file($path . session_id()) ); // -> TRUE session_regenerate_id(); // starts new session, but file is not create! var_dump( is_file($path . session_id()) ); // -> FALSE
Output for git.master, git.master_jit, rfc.property-hooks
<pre>string(6) "/sess_" Warning: session_start(): Session cannot be started after headers have already been sent in /in/5ksW0 on line 5 Warning: is_file(): open_basedir restriction in effect. File(/sess_) is not within the allowed path(s): (/tmp:/in:/etc) in /in/5ksW0 on line 7 bool(false) Warning: session_regenerate_id(): Session ID cannot be regenerated when there is no active session in /in/5ksW0 on line 9 Warning: is_file(): open_basedir restriction in effect. File(/sess_) is not within the allowed path(s): (/tmp:/in:/etc) in /in/5ksW0 on line 11 bool(false)

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:
40.31 ms | 402 KiB | 8 Q