3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '99-99-9999 99:99'; var_dump(strtotime($str)); var_dump(date_parse($str));
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) array(15) { ["year"]=> bool(false) ["month"]=> bool(false) ["day"]=> bool(false) ["hour"]=> int(9) ["minute"]=> int(9) ["second"]=> int(0) ["fraction"]=> float(0) ["warning_count"]=> int(1) ["warnings"]=> array(1) { [5]=> string(29) "Double timezone specification" } ["error_count"]=> int(6) ["errors"]=> array(6) { [0]=> string(20) "Unexpected character" [1]=> string(20) "Unexpected character" [8]=> string(20) "Unexpected character" [9]=> string(20) "Unexpected character" [11]=> string(20) "Unexpected character" [15]=> string(20) "Unexpected character" } ["is_localtime"]=> bool(true) ["zone_type"]=> int(1) ["zone"]=> int(-356400) ["is_dst"]=> bool(false) }

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:
37.42 ms | 403 KiB | 8 Q