3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = [ 'create' => [ ['table' => 'news'], 'id', ['title', 'varchar'], ['published_at', 'date', 'index' => true], ['text', 'text'] ] ]; echo json_encode($x, JSON_PRETTY_PRINT);
Output for 5.5.0 - 7.3.0beta1
{ "create": [ { "table": "news" }, "id", [ "title", "varchar" ], { "0": "published_at", "1": "date", "index": true }, [ "text", "text" ] ] }