3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('DB_PREFIX', ''); echo $sql = " CREATE TABLE `" . DB_PREFIX . "category_option` ( `option_id` int(10) NOT NULL auto_increment, `status` int(1) default '0', `sort_order` int(10) default '0', PRIMARY KEY (`option_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `" . DB_PREFIX . "category_option_description` ( `option_id` int(10) NOT NULL, `language_id` int(10) NOT NULL, `name` varchar(127) NOT NULL, PRIMARY KEY (`option_id`,`language_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `" . DB_PREFIX . "category_option_to_category` ( `option_id` int(11) NOT NULL, `category_id` int(11) NOT NULL, PRIMARY KEY (`category_id`,`option_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `" . DB_PREFIX . "category_option_value` ( `value_id` int(10) NOT NULL auto_increment, `option_id` int(10) default '0', `sort_order` int(10) default '0', PRIMARY KEY (`value_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `" . DB_PREFIX . "category_option_value_description` ( `value_id` int(10) NOT NULL, `language_id` int(10) NOT NULL, `option_id` int(10) NOT NULL, `name` varchar(127) NOT NULL, PRIMARY KEY (`value_id`,`language_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `" . DB_PREFIX . "product_to_value` ( `product_id` int(11) NOT NULL, `value_id` int(11) NOT NULL, `option_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`value_id`,`option_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ";
Output for git.master, git.master_jit, rfc.property-hooks
CREATE TABLE `category_option` ( `option_id` int(10) NOT NULL auto_increment, `status` int(1) default '0', `sort_order` int(10) default '0', PRIMARY KEY (`option_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `category_option_description` ( `option_id` int(10) NOT NULL, `language_id` int(10) NOT NULL, `name` varchar(127) NOT NULL, PRIMARY KEY (`option_id`,`language_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `category_option_to_category` ( `option_id` int(11) NOT NULL, `category_id` int(11) NOT NULL, PRIMARY KEY (`category_id`,`option_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `category_option_value` ( `value_id` int(10) NOT NULL auto_increment, `option_id` int(10) default '0', `sort_order` int(10) default '0', PRIMARY KEY (`value_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `category_option_value_description` ( `value_id` int(10) NOT NULL, `language_id` int(10) NOT NULL, `option_id` int(10) NOT NULL, `name` varchar(127) NOT NULL, PRIMARY KEY (`value_id`,`language_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE `product_to_value` ( `product_id` int(11) NOT NULL, `value_id` int(11) NOT NULL, `option_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`value_id`,`option_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.87 ms | 405 KiB | 8 Q