3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $request = array('foo/bar', array('ban' => 'baz'), 'test'); $request += array('', array(), null, '15 second'); var_dump($request);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> string(7) "foo/bar" [1]=> array(1) { ["ban"]=> string(3) "baz" } [2]=> string(4) "test" [3]=> string(9) "15 second" }