3v4l.org

run code in 200+ php & hhvm versions
<?php $dab1 = "myDB_1"; $sql1 = "CREATE DATABASE $dab1"; echo $sql1; echo "\n"; $dab2 = "myDB_2"; $sql2 = "CREATE DATABASE " . $dab2; echo $sql2;
based on afdMR
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.11
CREATE DATABASE myDB_1 CREATE DATABASE myDB_2