3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $CONFIG['databases'][] = Array( 'db_type'=>'mysql', 'db_host'=>'mysql-5.kardex.com.au:3306', 'db_username'=>'mykard1001', 'db_password'=>'aA5h9XCx', 'db_name'=>'kardexdb_kardex_com_au' ); $CONFIG['database'][] = Array( 'db_type'=>'mysql', 'db_host'=>'mysql-2.kardex.com.au:3306', 'db_username'=>'myoffe1001', 'db_password'=>'sKZmhqzh', 'db_name'=>'offertracking_kardex_com_au' ); foreach ($db as $CONFIG['database']) print_r($db); ?>
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: db in /in/10rtm on line 19 Warning: Invalid argument supplied for foreach() in /in/10rtm on line 19
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.5
Warning: Invalid argument supplied for foreach() in /in/10rtm on line 19
Output for 4.3.11