3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_shippingRateGroups = array('count' => 1, array( 'flatrate' => array( 'Standard UK delivery', 'Special UK delivery' ), 'flatrate2' => array( 'Something1' ) )); foreach($_shippingRateGroups as $count => $_shippingRateGroup) { foreach($_shippingRateGroup as $code => $_rates) { echo $_rates; } }
based on pQ3Km
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Invalid argument supplied for foreach() in /in/HfZCZ on line 15 Notice: Array to string conversion in /in/HfZCZ on line 16 Array Notice: Array to string conversion in /in/HfZCZ on line 16 Array
Output for hhvm-3.12.0
Warning: Invalid argument supplied for foreach() in /in/HfZCZ on line 17 Notice: Array to string conversion in /in/HfZCZ on line 16 Array Notice: Array to string conversion in /in/HfZCZ on line 16 Array
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.3.29
Warning: Invalid argument supplied for foreach() in /in/HfZCZ on line 15 ArrayArray
Output for 4.3.11
ArrayArray