3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ssbdb = "stats"; $output = <<<SQL CREATE TABLE IF NOT EXISTS {$ssbdb} ( s_network VARCHAR(64) NOT NULL, s_profile VARCHAR(32) NOT NULL, s_userid VARCHAR(254) DEFAULT NULL, s_time INT(10) NOT NULL, s_browser VARCHAR(32) DEFAULT NULL, s_os VARCHAR(32) DEFAULT NULL, s_link VARCHAR(32) NOT NULL, s_ip VARCHAR(64) NOT NULL, s_country VARCHAR(128) DEFAULT NULL, s_state VARCHAR(128) DEFAULT NULL, s_city VARCHAR(128) DEFAULT NULL, s_uid VARCHAR(32) NOT NULL, s_model INT(1) NOT NULL ); SQL; var_dump($output);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(443) "CREATE TABLE IF NOT EXISTS stats ( s_network VARCHAR(64) NOT NULL, s_profile VARCHAR(32) NOT NULL, s_userid VARCHAR(254) DEFAULT NULL, s_time INT(10) NOT NULL, s_browser VARCHAR(32) DEFAULT NULL, s_os VARCHAR(32) DEFAULT NULL, s_link VARCHAR(32) NOT NULL, s_ip VARCHAR(64) NOT NULL, s_country VARCHAR(128) DEFAULT NULL, s_state VARCHAR(128) DEFAULT NULL, s_city VARCHAR(128) DEFAULT NULL, s_uid VARCHAR(32) NOT NULL, s_model INT(1) NOT NULL );"