3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data=[];/*чтобы не было варингов*/?> <option value="<?php echo $data['id']; ?>"><?php echo $data['name'] ?> &mdash; <?php echo $data['cost'];?> руб <?php echo '' . $skidka . '';?>
Output for 5.6.30, hhvm-3.15.4 - 3.21.3, 7.0.0 - 7.3.0rc3
<option value=" Notice: Undefined index: id in /in/lZUIq on line 2 "> Notice: Undefined index: name in /in/lZUIq on line 2 &mdash; Notice: Undefined index: cost in /in/lZUIq on line 2 руб Notice: Undefined variable: skidka in /in/lZUIq on line 2
Output for hhvm-3.22.0
<option value=" Notice: Undefined index: id in /in/lZUIq on line -1 "> Notice: Undefined index: name in /in/lZUIq on line -1 &mdash; Notice: Undefined index: cost in /in/lZUIq on line -1 руб Notice: Undefined variable: skidka in /in/lZUIq on line -1