3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo array_slice(explode('\\', 'asdfasd\asdfasd\last'), -1, 1, true);
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/RcUH4 on line 2 Array
Output for 5.0.2 - 5.3.29
Array
Output for 4.3.0 - 5.0.1
Warning: Wrong parameter count for array_slice() in /in/RcUH4 on line 2