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 $index => $value) { var_dump($value); }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(7) { ["ID"]=> string(5) "49500" ["IS_NEW"]=> string(1) "0" ["OrgType"]=> string(1) "5" ["Surname"]=> string(12) "Акушев" ["Name"]=> string(20) "Константин" ["Patronymic"]=> string(14) "Юрьевич" ["Certificates"]=> array(1) { [0]=> array(8) { ["SerialNumber"]=> string(20) "194B934900060001FA17" ["KeyDate"]=> string(19) "2011-10-28 11:21:00" ["ExpDate"]=> string(19) "2012-10-28 11:23:00" ["Type"]=> string(1) "1" ["TypeName"]=> string(22) "Федеральный" ["Status"]=> string(1) "1" ["StatusName"]=> string(22) "действующий" ["Name"]=> string(41) "Тестовый пользователь" } } }
Output for hhvm-3.10.0

Process exited with code 153.