3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date_create_from_format("2014-01-04","Y-m-d"); $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 #1 ($baseObject) must be of type DateTimeInterface, bool given in /in/9egjI:4 Stack trace: #0 /in/9egjI(4): date_diff(false, false) #1 {main} thrown in /in/9egjI on line 4
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught TypeError: date_diff(): Argument #1 ($baseObject) must be of type DateTimeInterface, false given in /in/9egjI:4 Stack trace: #0 /in/9egjI(4): date_diff(false, false) #1 {main} thrown in /in/9egjI 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:
45.51 ms | 401 KiB | 8 Q