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) { list($type, $no) = $limits; }
Output for 7.0.0 - 7.1.0
Notice: Undefined offset: 0 in /in/lJHbO on line 9 Notice: Undefined offset: 1 in /in/lJHbO on line 9 Notice: Undefined offset: 0 in /in/lJHbO on line 9 Notice: Undefined offset: 1 in /in/lJHbO on line 9
Output for 5.3.0 - 5.6.28
Notice: Undefined offset: 1 in /in/lJHbO on line 9 Notice: Undefined offset: 0 in /in/lJHbO on line 9 Notice: Undefined offset: 1 in /in/lJHbO on line 9 Notice: Undefined offset: 0 in /in/lJHbO on line 9
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/lJHbO on line 9 Notice: Undefined offset: 0 in /in/lJHbO on line 9 Notice: Undefined offset: 1 in /in/lJHbO on line 9 Notice: Undefined offset: 0 in /in/lJHbO on line 9