3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $jobTiers = array("tier_1" => array("jobs_to_inc" => 10, "jobs_to_dec" => 8), "tier_2" => array("jobs_to_inc" => 20, "jobs_to_dec" => 16)); $jobCount = 10; foreach ($jobTiers as $tier => $limits) { var_dump($limits); //list($type, $no) = $limits; //echo $type . $no; }
Output for 4.3.0 - 7.1.0
array(2) { ["jobs_to_inc"]=> int(10) ["jobs_to_dec"]=> int(8) } array(2) { ["jobs_to_inc"]=> int(20) ["jobs_to_dec"]=> int(16) }