3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('1' => 'GS1','2' => 'GS2','3' => 'GS3','4' => 'GS4','5' => 'GS5',); print_r($arr); var_dump($arr); ?>
Output for 4.3.0 - 7.1.0
Array ( [1] => GS1 [2] => GS2 [3] => GS3 [4] => GS4 [5] => GS5 ) array(5) { [1]=> string(3) "GS1" [2]=> string(3) "GS2" [3]=> string(3) "GS3" [4]=> string(3) "GS4" [5]=> string(3) "GS5" }