3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (strpos($tbl[0],DB_PREFIX) !== false && !stristr($tbl[0],'_fc_')) { $tablename = $tbl[0]; $flds=$db->getAll("describe ".$tablename); $fields=array(); foreach($flds as $nm=>$fldx) { $fld = array_values($fldx); $fields[$fld[0]]=$fld[1]; } $tables[$tablename]=$fields; } ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: tbl in /in/dsHnN on line 2 Notice: Use of undefined constant DB_PREFIX - assumed 'DB_PREFIX' in /in/dsHnN on line 2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: tbl in /in/dsHnN on line 2 Notice: Use of undefined constant DB_PREFIX - assumed 'DB_PREFIX' in /in/dsHnN on line 2