3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function adminer_object() { class AdminerSoftware extends Adminer { function name() { // custom name in title and heading return 'Software'; } function permanentLogin() { // key used for permanent login return "f8ee948505701abca3021525592e55b5"; } function credentials() { // server, username and password for connecting to database return array('localhost', 'ODBC', ''); } function database() { // database name, will be escaped by Adminer return 'software'; } function login($login, $password) { // validate user submitted credentials return ($login == 'admin' && $password == ''); } function tableName($tableStatus) { // tables without comments would return empty string and will be ignored by Adminer return h($tableStatus["Comment"]); } function fieldName($field, $order = 0) { // only columns with comments will be displayed and only the first five in select return ($order <= 5 && !preg_match('~_(md5|sha1)$~', $field["field"]) ? h($field["comment"]) : ""); } } return new AdminerSoftware; }
based on WViv0
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0