3v4l.org

run code in 300+ PHP versions simultaneously
<?php $esas = array("portakal", "muz", "elma", "armut"); $ikame = array(0 => "karpuz", 4 => "kavun"); $ikame2 = array(0 => "kiraz"); $sepet = array_replace($esas, $ikame, $ikame2); print_r($sepet);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => kiraz [1] => muz [2] => elma [3] => armut [4] => kavun )

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:
28.9 ms | 405 KiB | 5 Q