3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(\DateInterval::createFromDateString('6 years foobarbaz 4 months'));
based on sQjh2

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
Warning: DateInterval::createFromDateString(): Unknown or bad format (6 years foobarbaz 4 months) at position 8 (f): The timezone could not be found in the database in /in/cVbcv on line 3 bool(false)

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