3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dab1 = "myDB_1"; $sql1 = "CREATE DATABASE $dab1"; echo $sql1; echo "\n"; $dab2 = "myDB_2"; $sql2 = "CREATE DATABASE " . $dab2; echo $sql2;
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.30, 7.4.0 - 7.4.23, 8.0.0 - 8.0.11, 8.1rc1
CREATE DATABASE myDB_1 CREATE DATABASE myDB_2

preferences:
40.5 ms | 459 KiB | 5 Q