3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arrays = array ( 0 => array( "location" => "Breakwater", "bsid" => "105c" ), 1 => array( "location" => "Breakwater", "bsid" => "105c" ), 2 => array( "location" => "Breakwater", "bsid" => "105c" ), 3 => array( "location" => "Whateverelse", "bsid" => "105c" ) ); $count = array(); foreach($arrays as $simple) { $count[$simple['bsid']]++; }
Output for 5.3.0 - 7.1.0
Notice: Undefined index: 105c in /in/3kp98 on line 25
Output for 4.3.0 - 5.2.17
Notice: Undefined index: 105c in /in/3kp98 on line 25