3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( '1/10/2014', '1/11/2014', '1/12/2014', '1/13/2014', '1/14/2014' ); foreach ($array as $key => $date) { $unixdate = strtotime($date); if ($unixdate < time()) { unset($array[$key]); } } print_r($array);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [3] => 1/13/2014 [4] => 1/14/2014 )