3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); if($_SESSION["PagesVisited"] != 1){ header( 'Location: /mobileSurvey1.php' ) ; }else{ $_SESSION["PagesVisited"] = 2; } ?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Notice: Undefined index: PagesVisited in /in/g8I2p on line 5 Warning: Cannot modify header information - headers already sent by (output started at /in/g8I2p:5) in /in/g8I2p on line 6
Output for hhvm-3.15.4
Notice: Undefined index: PagesVisited in /in/g8I2p on line 5