3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $coordinates = array('Years' => 'All Years', 'Months' => 'All Months', 'Days' => 'All Days', 'Hours' => 'All Hours', 'Time' => 'All Time'); $newCoordinates = array('Years' => 2014); var_dump($coordinates, $newCoordinates);
based on LSebe
Output for 4.3.0 - 7.1.0
array(5) { ["Years"]=> string(9) "All Years" ["Months"]=> string(10) "All Months" ["Days"]=> string(8) "All Days" ["Hours"]=> string(9) "All Hours" ["Time"]=> string(8) "All Time" } array(1) { ["Years"]=> int(2014) }