3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dates = array(); $t_s = array(42392, 42392, 102460, 42392, 102460); foreach ($t_s as $t) { $dates[$t][] = 1; } print_r($dates);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [42392] => Array ( [0] => 1 [1] => 1 [2] => 1 ) [102460] => Array ( [0] => 1 [1] => 1 ) )
Output for hhvm-3.10.0

Process exited with code 153.