3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(array('test') + array('ast', 'bad', 'zest', 'demo')); print_r(array_merge('test', array('ast', 'bad', 'zest', 'demo')));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => test [1] => bad [2] => zest [3] => demo ) Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, string given in /in/VAvKR:3 Stack trace: #0 /in/VAvKR(3): array_merge('test', Array) #1 {main} thrown in /in/VAvKR on line 3
Process exited with code 255.

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:
45.03 ms | 401 KiB | 8 Q