3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_SESSION['MAster'] = '4632763278'; unset($_SESSION['MAster']); if($_SESSION['MAster']){ echo 'HELLO'; } if(in_array('MAster',$_SESSION)){ echo 'HELLO'; } if(isset($_SESSION['MAster'])){ echo 'HELLO 2'; } if($_SESSION['MAster']=='4632763278'){ echo 'HELLO 3'; }
Output for 5.3.0 - 7.2.0
Notice: Undefined index: MAster in /in/81A1e on line 5 Notice: Undefined index: MAster in /in/81A1e on line 14
Output for 4.3.0 - 5.2.17
Notice: Undefined index: MAster in /in/81A1e on line 5 Notice: Undefined index: MAster in /in/81A1e on line 14