3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "2014-07-22 08:15:54"; $integer = "154"; $string = "Marian kupsztal"; var_dump(strtotime($date)); var_dump(strtotime($integer)); var_dump(strtotime($string));
based on 8UQnu
Output for 5.1.0 - 7.2.0
int(1406009754) bool(false) bool(false)
Output for 4.3.1 - 5.0.5
int(1406009754) int(1407110040) int(-1)
Output for 4.3.0
int(1406009754) int(1442793240) int(-1)