3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $remainingPoints = ['a','b','c','d','e']; $batchCount = 3; $batchPoints = array_slice($remainingPoints, 0, $batchCount); $remainingPoints = array_slice($remainingPoints, $batchCount); print_r($remainingPoints);
Output for 5.6.0 - 7.3.0rc4
Array ( [0] => d [1] => e )