3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start(); ini_set('session.use_strict_mode', 1); session_start(); $orig = session_id(); session_regenerate_id(); $new = session_id(); var_dump(strlen($orig),strlen($new)); session_commit(); ini_set('session.hash_function','sha1'); session_id('invalid'); session_start(); $orig = session_id(); session_regenerate_id(); $new = session_id(); var_dump(strlen($orig),strlen($new));
Output for 7.1.0 - 7.2.0
int(32) int(32) int(32) int(32)
Output for 5.5.24 - 7.0.20
int(32) int(32) int(40) int(40)
Output for 5.3.21 - 5.4.45
int(32) int(32) int(7) int(40)