3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $settings = array( 'name' => array( 0 => 'Large Pouch', 1 => 'XL Pouch' ), 'size' => array( 0 => '9x14', 1 => '12x18' ), 'weight' => array( 0 => '10', 1 => '20' ), 'metro_manila_price' => array( 0 => '59', 1 => '79' ), 'luzvimin_price' => array( 0 => '89', 1 => '139' ) ); $shipping_options = array(); foreach ($settings['name'] as $key => $value) { $shipping_options[$key] = $settings['size'][$key] . " - $" . $settings['metro_manila_price'][$key]; } print_r($shipping_options);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 9x14 - $59 [1] => 12x18 - $79 )
Output for hhvm-3.10.0

Process exited with code 153.