3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo strtotime('03.02.2014'); echo time(); $today = getdate(); print_r($today); $format = '%d/%m/%Y %H:%M:%S'; $strf = strftime($format); echo "$strf\n"; print_r(strptime($strf, $format));
Output for 5.1.0 - 7.1.0
13913820001391387353Array ( [seconds] => 13 [minutes] => 29 [hours] => 1 [mday] => 3 [wday] => 1 [mon] => 2 [year] => 2014 [yday] => 33 [weekday] => Monday [month] => February [0] => 1391387353 ) 03/02/2014 01:29:13 Array ( [tm_sec] => 13 [tm_min] => 29 [tm_hour] => 1 [tm_mday] => 3 [tm_mon] => 1 [tm_year] => 114 [tm_wday] => 1 [tm_yday] => 33 [unparsed] => )
Output for 5.0.0 - 5.0.5
-11391387353Array ( [seconds] => 13 [minutes] => 29 [hours] => 1 [mday] => 3 [wday] => 1 [mon] => 2 [year] => 2014 [yday] => 33 [weekday] => Monday [month] => February [0] => 1391387353 ) 03/02/2014 01:29:13 Fatal error: Call to undefined function strptime() in /in/Lv205 on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
-11391387353Array ( [seconds] => 13 [minutes] => 29 [hours] => 1 [mday] => 3 [wday] => 1 [mon] => 2 [year] => 2014 [yday] => 33 [weekday] => Monday [month] => February [0] => 1391387353 ) 03/02/2014 01:29:13 Fatal error: Call to undefined function: strptime() in /in/Lv205 on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
-11391387353Array ( [seconds] => 13 [minutes] => 29 [hours] => 1 [mday] => 3 [wday] => 1 [mon] => 2 [year] => 2014 [yday] => 33 [weekday] => Monday [month] => February [0] => 1391387353 ) 03/02/2014 01:29:13 Fatal error: Call to undefined function: strptime() in /in/Lv205 on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
-11391387353Array ( [seconds] => 13 [minutes] => 29 [hours] => 1 [mday] => 3 [wday] => 1 [mon] => 2 [year] => 2014 [yday] => 33 [weekday] => Monday [month] => February [0] => 1391387353 ) 03/02/2014 01:29:13 Fatal error: Call to undefined function: strptime() in /in/Lv205 on line 12