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 "\n"; echo strtotime("2015-04-20 18:11:54"); echo '\n'; echo strtotime("20/04/2015 18:11:54");
based on 4SJ7q
Output for 5.1.0 - 7.2.0
1429546314\n
Output for 4.3.0 - 5.0.5
-1 1429546314\n1470327114