3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo DateInterval::createFromDateString('Every Friday') ?>
Output for 8.3.0 - 8.3.7
Fatal error: Uncaught DateMalformedIntervalStringException: Unknown or bad format (Every Friday) at position 0 (E): The timezone could not be found in the database in /in/FCThj:3 Stack trace: #0 /in/FCThj(3): DateInterval::createFromDateString('Every Friday') #1 {main} thrown in /in/FCThj on line 3
Process exited with code 255.
Output for 7.2.17 - 7.2.33, 7.3.4 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: DateInterval::createFromDateString(): Unknown or bad format (Every Friday) at position 0 (E): The timezone could not be found in the database in /in/FCThj on line 3
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.13, 7.3.0 - 7.3.3
Recoverable fatal error: Object of class DateInterval could not be converted to string in /in/FCThj on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.33
Catchable fatal error: Object of class DateInterval could not be converted to string in /in/FCThj on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Catchable fatal error: Object of class DateInterval could not be converted to string in /in/FCThj on line 5
Process exited with code 255.

preferences:
231.04 ms | 402 KiB | 322 Q