3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "as"; $text = $text . '[kav ““”” - &ldquo;&ldquo;&rdquo;&rdquo;]'; $doubleQuotesToReplace = array("“", "”", "&ldquo;", "&rdquo;"); $doubleQuotes = array('"', '"', '"', '"'); $text = str_replace($doubleQuotesToReplace, $doubleQuotes, $text); echo $text;
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: text in /in/g9aWU on line 3 [kav """" - """"]
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: text in /in/g9aWU on line 3 [kav """" - """"]