3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data[] = array('name' => 67, 'visitor' => 2); $data[] = array('name' => 86, 'visitor' => 1); $data[] = array('name' => 85, 'visitor' => 6); $data[] = array('name' => 98, 'visitor' => 2); $data[] = array('name' => 86, 'visitor' => 6); $data[] = array('name' => 67, 'visitor' => 7); var_dump($data);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(6) { [0]=> array(2) { ["name"]=> int(67) ["visitor"]=> int(2) } [1]=> array(2) { ["name"]=> int(86) ["visitor"]=> int(1) } [2]=> array(2) { ["name"]=> int(85) ["visitor"]=> int(6) } [3]=> array(2) { ["name"]=> int(98) ["visitor"]=> int(2) } [4]=> array(2) { ["name"]=> int(86) ["visitor"]=> int(6) } [5]=> array(2) { ["name"]=> int(67) ["visitor"]=> int(7) } }