3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('ERR_CODE' => 0, 'ABONENTS' => array(array('ID' => '49500', 'IS_NEW' => '0', 'OrgType' => '5', 'Surname' => 'Акушев', 'Name' => 'Константин', 'Patronymic' => 'Юрьевич', 'Certificates' => array( array( 'SerialNumber' => '194B934900060001FA17', 'KeyDate' => '2011-10-28 11:21:00', 'ExpDate' => '2012-10-28 11:23:00', 'Type' => '1', 'TypeName' => 'Федеральный', 'Status' => '1', 'StatusName' => 'действующий', 'Name' => 'Тестовый пользователь' ) ) ) ) ); foreach($arr['ABONENTS'] as $ind => $val) { echo($ind.' = '.$val.PHP_EOL); }
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/KuV9u on line 30 0 = Array
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.3.29
0 = Array
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/KuV9u on line 30 0 = ArrayPHP_EOL