3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = (object) array( 'errors' => array( 'up-to-date' => 'foo' ) ); var_dump( $result ); var_dump( reset( reset( $result ) ) );
Output for 7.0.0 - 7.2.0
object(stdClass)#1 (1) { ["errors"]=> array(1) { ["up-to-date"]=> string(3) "foo" } } Notice: Only variables should be passed by reference in /in/aRcq2 on line 5 string(3) "foo"
Output for 5.3.18 - 5.6.28
object(stdClass)#1 (1) { ["errors"]=> array(1) { ["up-to-date"]=> string(3) "foo" } } Strict Standards: Only variables should be passed by reference in /in/aRcq2 on line 5 string(3) "foo"