3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $wrap = array( array( (object)array("content" => "GrĂ¼ne Logistik", "date" => "2014-04-02 14:08:52"), (object)array("content" => "bellomondo ist klimaneutral", "date" => "2014-03-06 09:15:59"), ), array( (object)array("content" => "en test post title", "date" => "2014-04-07 15:31:19"), ), ); //var_dump($wrap); //echo '---------------------'; $sorted = call_user_func_array('array_merge', $wrap); //var_dump($sorted); //echo '---------------------'; var_dump($sorted[0][0]); ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/tS0mS:23 Stack trace: #0 {main} thrown in /in/tS0mS on line 23
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Object does not implement ArrayAccess in /in/tS0mS on line 23
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Fatal error: Cannot use object of type stdClass as array in /in/tS0mS on line 23
Process exited with code 255.
Output for 4.3.0 - 4.4.9
NULL