3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $alphabet = 'abcdefghijklmnopqrstuvwxyz'; $letters = str_split($alphabet, 2); print_r($letters); ?>
based on NlH8e
Output for 7.1.25 - 7.3.4
Array ( [0] => ab [1] => cd [2] => ef [3] => gh [4] => ij [5] => kl [6] => mn [7] => op [8] => qr [9] => st [10] => uv [11] => wx [12] => yz )