3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_shippingRateGroups = array('count' => 1, 'group' => array( 'flatrate' => array( 'Standard UK delivery', 'Special UK delivery' ), 'flatrate2' => array( 'Something1' ) )); foreach($_shippingRateGroups as $count => $_shippingRateGroup) { foreach($_shippingRateGroup as $code => $_rates) { print_r($_rates); } }
based on SYPLT
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Invalid argument supplied for foreach() in /in/cVDvJ on line 16 Array ( [0] => Standard UK delivery [1] => Special UK delivery ) Array ( [0] => Something1 )
Output for hhvm-3.12.0
Warning: Invalid argument supplied for foreach() in /in/cVDvJ on line 18 Array ( [0] => Standard UK delivery [1] => Special UK delivery ) Array ( [0] => Something1 )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11
Array ( [0] => Standard UK delivery [1] => Special UK delivery ) Array ( [0] => Something1 )