3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date_create_from_format("Y-m-d","2014-01-04"); $date2 = date_create_from_format("2014-02-01","Y-m-d"); echo date_diff($date1,$date2);
Output for git.master, git.master_jit
Fatal error: Uncaught TypeError: date_diff(): Argument #2 ($targetObject) must be of type DateTimeInterface, bool given in /in/U8TVI:4 Stack trace: #0 /in/U8TVI(4): date_diff(Object(DateTime), false) #1 {main} thrown in /in/U8TVI on line 4
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught TypeError: date_diff(): Argument #2 ($targetObject) must be of type DateTimeInterface, false given in /in/U8TVI:4 Stack trace: #0 /in/U8TVI(4): date_diff(Object(DateTime), false) #1 {main} thrown in /in/U8TVI on line 4
Process exited with code 255.

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:
35.86 ms | 401 KiB | 8 Q