3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dates = [ 7 => time() + (86400 * 7), 3 => time() + (86400 *3), 1 => time() + 86400 ]; var_dump($dates);
based on EFCFJ
Output for 5.5.0 - 5.6.12, 5.6.14 - 7.2.0
array(3) { [7]=> int(1453198710) [3]=> int(1452853110) [1]=> int(1452680310) }
Output for 5.6.13
array(3) { [7]=> int(1453198709) [3]=> int(1452853109) [1]=> int(1452680309) }