3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php setlocale( LC_TIME, 'fr_FR' ); $date = strptime( '03 juin 2015' . ' 00:00:00', '%d %B %Y %H:%M:%S' ); $time = mktime( 0, 0, 0, $date['tm_mon'] + 1, $date['tm_mday'], $date['tm_year'] + 1900 ); var_dump( $date, $time, date( 'Y-m-d H:i:s', $time ) );
Output for 5.2.6 - 7.2.0
bool(false) int(-2209076372) string(19) "1899-12-31 00:00:00"
Output for 5.1.0 - 5.2.5
bool(false) bool(false) string(19) "1970-01-01 01:00:00"
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function strptime() in /in/jrJ01 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: strptime() in /in/jrJ01 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: strptime() in /in/jrJ01 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: strptime() in /in/jrJ01 on line 5