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($_SESSION,'MAster')){ 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/uhTDQ on line 5 Warning: in_array() expects parameter 2 to be array, string given in /in/uhTDQ on line 8 Notice: Undefined index: MAster in /in/uhTDQ on line 14
Output for 4.3.2 - 5.2.17
Notice: Undefined index: MAster in /in/uhTDQ on line 5 Warning: in_array(): Wrong datatype for second argument in /in/uhTDQ on line 8 Notice: Undefined index: MAster in /in/uhTDQ on line 14
Output for 4.3.0 - 4.3.1
Notice: Undefined index: MAster in /in/uhTDQ on line 5 Warning: in_array() [http://www.php.net/function.in-array]: Wrong datatype for second argument in /in/uhTDQ on line 8 Notice: Undefined index: MAster in /in/uhTDQ on line 14