3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $schema['ff_acl'] = array( 'description' => 'Table storing association codes tied to a user id.', 'fields' => array( 'aid' => array( 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE ), 'uid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE ), 'nid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE ), 'sku' => array( 'type' => 'varchar', 'length' => 64, 'not null' => FALSE, 'description'=> 'The products sku/model number.' ), 'order_id' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE ), 'expires' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'description'=> 'Access expiration time.' ), ), 'primary key' => array('aid') ); print_r($schema);
based on 3cada
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [ff_acl] => Array ( [description] => Table storing association codes tied to a user id. [fields] => Array ( [aid] => Array ( [type] => serial [unsigned] => 1 [not null] => 1 ) [uid] => Array ( [type] => int [unsigned] => 1 [not null] => 1 ) [nid] => Array ( [type] => int [unsigned] => 1 [not null] => 1 ) [sku] => Array ( [type] => varchar [length] => 64 [not null] => [description] => The products sku/model number. ) [order_id] => Array ( [type] => int [unsigned] => 1 [not null] => 1 ) [expires] => Array ( [type] => int [unsigned] => 1 [not null] => [description] => Access expiration time. ) ) [primary key] => Array ( [0] => aid ) ) )