3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $posts = array("pt", "r", "bp"); $posts = array_slice($posts, 0, 3); print_r(array_slice($posts, 0, 3)); print_r($posts); print_r(implode(",", $posts)); ?>
based on 7KvIu
Output for 5.3.20 - 7.2.0
Array ( [0] => pt [1] => r [2] => bp ) Array ( [0] => pt [1] => r [2] => bp ) pt,r,bp