3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(assert($_SERVER['HTTP_SESSION']));
Output for 7.0.1 - 7.2.0
Notice: Undefined index: HTTP_SESSION in /in/j9eGH on line 3 Warning: assert(): assert($_SERVER['HTTP_SESSION']) failed in /in/j9eGH on line 3 bool(false)
Output for 7.0.0
Notice: Undefined index: HTTP_SESSION in /in/j9eGH on line 3 Warning: assert(): assert($_SERVER['HTTP_SESSION']) failed in /in/j9eGH on line 3 NULL
Output for 5.3.20 - 5.6.28
Notice: Undefined index: HTTP_SESSION in /in/j9eGH on line 3 Warning: assert(): Assertion failed in /in/j9eGH on line 3 NULL