3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = "20/04/2015 19:11:33"; list($d, $M, $y, $h, $m, $s) = preg_split("/[\s,\/:]+/",$fecha); echo "\n->"; echo strtotime("$d-$M-$y $h:$m:$s") - 1429575034; echo "\n->"; echo strtotime("2015-20-04 19:11:33") - 1429575034; echo "\n->"; echo strtotime("20/04/2015 19:11:33") . 'No funciona'; echo "\n->"; echo date("Y-m-d H:i:s", 1429635779 - 7*60*60);
based on MaVAL
Output for 5.1.3 - 7.2.0
->-25141 ->-1429575034 ->No funciona ->2015-04-21 12:02:59
Output for 5.1.0 - 5.1.2
->-1429575034 ->86666 ->No funciona ->2015-04-21 12:02:59
Output for 4.3.0 - 5.0.5
->330195659 ->40755659 ->1470330693No funciona ->2015-04-21 12:02:59