3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $host = 'foo'; $database = 'bar'; echo "mysql:host=$host;dbname=$database;charset=utf8";
Output for 4.3.0 - 7.1.0
mysql:host=foo;dbname=bar;charset=utf8