3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'foo-bar'; $result = array_slice(explode('-', $string), -1);
Output for 4.3.0 - 7.1.0