3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( array(1, 'Mobiel', 'Apple', '', ''), array(2, 'Mobiel', 'Apple', '', ''), array(3, 'Mobiel', 'Apple', '', ''), array(4, 'Mobiel', 'Apple', '', ''), array(5, 'Mobiel', 'Apple', '', '') ); $cars = array ( array('Volvo', 'BMW', 'Volkswagen'), array('', '', '') ); foreach ($cars as $car) { $data[0][2] = $car; } print_r ($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 1 [1] => Mobiel [2] => Array ( [0] => [1] => [2] => ) [3] => [4] => ) [1] => Array ( [0] => 2 [1] => Mobiel [2] => Apple [3] => [4] => ) [2] => Array ( [0] => 3 [1] => Mobiel [2] => Apple [3] => [4] => ) [3] => Array ( [0] => 4 [1] => Mobiel [2] => Apple [3] => [4] => ) [4] => Array ( [0] => 5 [1] => Mobiel [2] => Apple [3] => [4] => ) )

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:
44.2 ms | 403 KiB | 8 Q