3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = "edvdr1 accepting requests since Tue Nov 19 16:22:32 2013"; $bits = explode(" ", $data); $useful = array_merge(array_slice($bits, 0, 2), implode(" ", array_slice($bits, 4))); var_dump($useful);
Output for 5.0.0 - 7.1.0
Warning: array_merge(): Argument #2 is not an array in /in/1lZFI on line 4 NULL
Output for 4.3.0 - 4.4.9
array(3) { [0]=> string(6) "edvdr1" [1]=> string(9) "accepting" [2]=> string(24) "Tue Nov 19 16:22:32 2013" }