3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = DateTime::createFromFormat('Y-m-d', '2018-00-01'); var_dump($x instanceof DateTime); echo $x->format('Y-m-d'); echo PHP_EOL; $x = DateTime::createFromFormat('Y-m-d', '2018-01-00'); var_dump($x instanceof DateTime); echo $x->format('Y-m-d'); echo PHP_EOL;
Output for git.master_jit, git.master, rfc.property-hooks
bool(true) 2017-12-01 bool(true) 2017-12-31

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:
51.33 ms | 1933 KiB | 4 Q