3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(); $arr[5] = array ( "ID" => 3123, "IS_NEW" => 1, "OrgType" => 5, "Surname" => 'Сабиров', "Name" => 'Раиль', "Patronymic" => 'Анварович' ); $arr[6] = array ( "ID" => 3124, "IS_NEW" => 1, "OrgType" => 5, "Surname" => "Сабиров", "Name" => "Раиль", "Patronymic" => "Анварович" ); function test($item, $key) { echo($key.' = '. $item); } array_walk($arr, 'test');
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/ioFrq on line 24 5 = Array Notice: Array to string conversion in /in/ioFrq on line 24 6 = Array
Output for 4.3.0 - 5.3.29
5 = Array6 = Array