3v4l.org

run code in 300+ PHP versions simultaneously
<?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) { $index = sprintf('%s(%s) - $%s', $value, $settings['size'][$key], $settings['metro_manila_price'][$key]); $shipping_options[$index] = $key; } print_r($shipping_options);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [Large Pouch(9x14) - $59] => 0 [XL Pouch(12x18) - $79] => 1 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.08 ms | 401 KiB | 8 Q