<?php // your code goes here$x = ['test1'];$y = ['test2']; $res = array_merge($x, $y);var_dump($res);
Standard input is empty
array(2) { [0]=> string(5) "test1" [1]=> string(5) "test2" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!