3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); $date = "15.11.2015"; $format_in = '%d.%m.%y'; $format_out = "%s"; $date_array = strptime($date, $format_in); print_r($date_array); extract($date_array, EXTR_PREFIX_SAME, "wddx"); $timestamp = date("U", mktime($tm_hour, $tm_min, $tm_sec, $tm_mon, $tm_mday, $tm_year)); echo "$timestamp\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function strptime() is deprecated in /in/M66Y6 on line 6 Array ( [tm_sec] => 0 [tm_min] => 0 [tm_hour] => 0 [tm_mday] => 15 [tm_mon] => 10 [tm_year] => 120 [tm_wday] => 0 [tm_yday] => 319 [unparsed] => 15 ) -58355513608

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.76 ms | 401 KiB | 8 Q