3v4l.org

run code in 300+ PHP versions simultaneously
<?php $quotes = [ [ 'order_number' => '12345678', 'customer_number' => '111111', ], [ 'order_number' => 'qqq', 'customer_number' => 'bbb', ] ]; // 'customer_number' => string '111111' (length=6) foreach($quotes as &$quote){ $quote['grand_total'] = [ 'tax_inclusive' => 123.45, 'tax_exclusive' => 120.00 ]; } var_dump($quotes);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(3) { ["order_number"]=> string(8) "12345678" ["customer_number"]=> string(6) "111111" ["grand_total"]=> array(2) { ["tax_inclusive"]=> float(123.45) ["tax_exclusive"]=> float(120) } } [1]=> &array(3) { ["order_number"]=> string(3) "qqq" ["customer_number"]=> string(3) "bbb" ["grand_total"]=> array(2) { ["tax_inclusive"]=> float(123.45) ["tax_exclusive"]=> float(120) } } }

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:
39.34 ms | 402 KiB | 8 Q