3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $args = "*vendor*"; $this->ignore = array_shift($args);
Output for 7.0.0 - 7.1.0
Warning: array_shift() expects parameter 1 to be array, string given in /in/4PSUE on line 4 Fatal error: Uncaught Error: Using $this when not in object context in /in/4PSUE:4 Stack trace: #0 {main} thrown in /in/4PSUE on line 4
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Warning: array_shift() expects parameter 1 to be array, string given in /in/4PSUE on line 4 Fatal error: Using $this when not in object context in /in/4PSUE on line 4
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Warning: array_shift(): The argument should be an array in /in/4PSUE on line 4 Fatal error: Using $this when not in object context in /in/4PSUE on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: array_shift(): The argument should be an array in /in/4PSUE on line 4
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/4PSUE on line 4