3v4l.org

run code in 300+ PHP versions simultaneously
<?php $givenArray = [ 'destination' => [ 'London', 'Liverpool', 'Nottingham', 'Oxford', ], 'fee' => [ 10, 15, 20, 25 ], ]; $output = []; foreach ($givenArray['destination'] as $key => $destination) { $fee = $givenArray['fee'][$key]; $output[] = [ 'destination' => $destination, 'fee' => $fee, 'status' => 1, ]; } print_r($output);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [destination] => London [fee] => 10 [status] => 1 ) [1] => Array ( [destination] => Liverpool [fee] => 15 [status] => 1 ) [2] => Array ( [destination] => Nottingham [fee] => 20 [status] => 1 ) [3] => Array ( [destination] => Oxford [fee] => 25 [status] => 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:
157.39 ms | 407 KiB | 5 Q