3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dash = html_entity_decode('&ndash;'); $a = ["Suché {$dash} trvanlivé", "Ovozel {$dash} chlazené", "Mražené", "Chlazené", "Drogerie", ]; print_r($a);
based on rM5ou
Output for 5.6.38 - 7.3.0rc3
Array ( [0] => Suché – trvanlivé [1] => Ovozel – chlazené [2] => Mražené [3] => Chlazené [4] => Drogerie )