3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,28,29,30,31,32,33,34,35,36,37,38,39,41,45,47,71,73,75,76,77,78,80,81,83,87,88,89,90'; $list = explode(',', $str); $list_new = array(91) + $list; var_export($list);
based on fEIrL
Output for 4.3.0 - 7.2.0
array ( 0 => '1', 1 => '2', 2 => '3', 3 => '4', 4 => '5', 5 => '6', 6 => '7', 7 => '8', 8 => '9', 9 => '10', 10 => '11', 11 => '12', 12 => '13', 13 => '14', 14 => '15', 15 => '16', 16 => '17', 17 => '28', 18 => '29', 19 => '30', 20 => '31', 21 => '32', 22 => '33', 23 => '34', 24 => '35', 25 => '36', 26 => '37', 27 => '38', 28 => '39', 29 => '41', 30 => '45', 31 => '47', 32 => '71', 33 => '73', 34 => '75', 35 => '76', 36 => '77', 37 => '78', 38 => '80', 39 => '81', 40 => '83', 41 => '87', 42 => '88', 43 => '89', 44 => '90', )