3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 00:00:00"); echo '<br>'; echo strtotime("20/04/2015 18:11:54");
based on iiI6T
Output for 5.1.0 - 7.2.0
<br>1429480800<br>
Output for 4.3.0 - 5.0.5
-1<br>1429480800<br>1470327114