3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fecha = "20/04/2015 18:11:54"; list($d, $M, $y, $h, $m, $s) = preg_split("/[\s,\/:]+/",$fecha); echo strtotime("$d $M $y $h:$m:$s"); echo "<br>"; echo strtotime("2015-04-20 18:11:54") - '1429571959'; echo '<br>'; echo strtotime("20/04/2015 18:11:54") - '1429571959';

preferences:
45.49 ms | 402 KiB | 5 Q