3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array(1,2,3,4,5); while($input) { $input = array_slice($input, 0, 2); print_r($input); }
based on ltBZ0