3v4l.org

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