3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Object {} $foo = new Object(); $test = array_shift($foo);
based on 1RTAK
Output for 5.3.0 - 7.1.0
Warning: array_shift() expects parameter 1 to be array, object given in /in/0vBbi on line 9
Output for 4.3.2 - 5.2.17
Warning: array_shift(): The argument should be an array in /in/0vBbi on line 9
Output for 4.3.0 - 4.3.1
Warning: array_shift() [http://www.php.net/function.array-shift]: The argument should be an array in /in/0vBbi on line 9