3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //session_start(); //session_write_close(); var_dump(defined('SID')); var_dump(sessionStatus()); // this would return false function sessionStatus() { if (function_exists('session_status')) { return (session_status() == PHP_SESSION_ACTIVE); } return defined('SID'); }
Output for 4.3.5 - 7.1.0
bool(false) bool(false)
Output for 4.3.0 - 4.3.4
int(0) int(0)