3v4l.org

run code in 300+ PHP versions simultaneously
<?php function floormap_schema(){ $schema['floormap_images'] = array ( 'description' => 'Floor map images.', 'fields' => array ( 'image' => array('type' => 'blob', 'not null' => TRUE,), 'name' => array( 'type' => 'varchar', 'length' => 30, 'not null' => TRUE,), 'active' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,), ), 'unique keys' => array('name' => array('name'), ), ); $schema['floormap_coords'] = array ( 'description' => 'Floor map images.', 'fields' => array ( 'uid' => array( 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE,), 'floormap' => array( 'type' => 'text', 'not null' => TRUE,), 'item_type' => array( 'type' => 'text', 'not null' => TRUE,), 'pos_a_x' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,), 'pos_a_y' => array( 'type' => 'int', 'unsiged' => TRUE, 'not null' => TRUE,), 'pos_b_x' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,), 'pos_b_y' => array( 'type' => 'int', 'unsiged' => TRUE, 'not null' => TRUE,), 'pos_c_x' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,), 'pos_c_y' => array( 'type' => 'int', 'unsiged' => TRUE,' not null' => TRUE,), 'pos_d_x' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,), 'pos_d_y' => array('type' => 'int', 'unsiged' => TRUE, 'not null' => TRUE,), ), 'unique keys' => array('uid' => array('uid'),), ); return $schema; } print_r(floormap_schema());

preferences:
37.52 ms | 402 KiB | 5 Q