3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $get = $_GET['type']; $array = array('AA', 'BB', 'CC'); if(in_array($get, $array)) { $Qdaily_entriesD = mysql_query("SELECT * FROM daily_entries WHERE account_type=$get ") OR DIE ("error"); while ($showRowGeneral = mysql_fetch_assoc($Qdaily_entriesD)){ ?> <tr> <td><?echo $showRowGeneral['account_type'];?></td> <td><?echo $showRowGeneral['riyal'];?></td> <td><?echo $showRowGeneral['dollars'];?></td> </tr> <? } } ?>
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.1
Notice: Undefined index: type in /in/vmjdk on line 3
Output for hhvm-3.22.0
Notice: Undefined index: type in /in/vmjdk on line -1