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", ]; foreach ($a as $i) { var_dump($i = 'Ovozel – chlazené''); }
based on BKmoA
Output for 7.3.0alpha1 - 7.3.0rc3
Parse error: syntax error, unexpected '');' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /in/rWfVh on line 12
Process exited with code 255.
Output for 7.0.28 - 7.2.11
Parse error: syntax error, unexpected '');' (T_ENCAPSED_AND_WHITESPACE), expecting ',' or ')' in /in/rWfVh on line 12
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected '');' (T_ENCAPSED_AND_WHITESPACE) in /in/rWfVh on line 12
Process exited with code 255.