3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dsn = array("test1" => "val1", "test2"=>array("test2.1" => "val2.1", "test2.2" => "val2.2")); foreach ($dsn as $key => $val) { $dsn[$key] = "$key=$val";}
based on ZCOYL
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/GFo2q on line 4
Output for 4.3.0 - 5.3.29