<?php$hashtags=[2,44,6,7,8,55,5]; $hashtags = array_slice($hashtags, 0, 5);var_export($hashtags);
Standard input is empty
array ( 0 => 2, 1 => 44, 2 => 6, 3 => 7, 4 => 8, )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!