3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php header('Content-type:text/html; charset=utf-8'); $heart = mb_convert_encoding('&#9829;', 'UTF-8', 'HTML-ENTITIES'); echo "&lt;?php<br><br>\n", "$<span class='red'>{$heart}</span> = \"love\";<br>\n", "var_dump( \"I $<span class='red'>{$heart}</span> PHP!\" );";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
&lt;?php<br><br> $<span class='red'>♥</span> = "love";<br> var_dump( "I $<span class='red'>♥</span> PHP!" );