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) { echo $limits; //list($type, $no) = $limits; //echo $type . $no; }
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/5Ys4P on line 9 Array Notice: Array to string conversion in /in/5Ys4P on line 9 Array
Output for hhvm-3.10.0
Notice: Array to string conversion in /in/5Ys4P on line 23 Array Notice: Array to string conversion in /in/5Ys4P on line 23 Array
Output for 4.3.0 - 5.3.29
ArrayArray