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" ) ); foreach ($arrays as $type) { $count+= count($type); } var_dump($count);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: count in /in/BJSXj on line 23 int(8)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: count in /in/BJSXj on line 23 int(8)