3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP 7.3 and older $parts = ['apple', 'pear']; $fruits = array_merge(['banana', 'orange'], $parts, ['watermelon']); var_dump($fruits); // PHP 7.4 $parts = ['apple', 'pear']; $fruits = ['banana', 'orange', ...$parts, 'watermelon']; var_dump($fruits);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(6) "banana" [1]=> string(6) "orange" [2]=> string(5) "apple" [3]=> string(4) "pear" [4]=> string(10) "watermelon" } array(5) { [0]=> string(6) "banana" [1]=> string(6) "orange" [2]=> string(5) "apple" [3]=> string(4) "pear" [4]=> string(10) "watermelon" }

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:
32.49 ms | 406 KiB | 5 Q