3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime; for ($w = 52; $w <= 54; $w++) { $dt->setISODate(2013, $w); print_r($dt); echo $dt->format('Y W') . "\n\n"; }
Output for git.master
DateTime Object ( [date] => 2013-12-23 13:03:24.003686 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013 52 DateTime Object ( [date] => 2013-12-30 13:03:24.003686 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013 01 DateTime Object ( [date] => 2014-01-06 13:03:24.003686 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2014 02
Output for git.master_jit
DateTime Object ( [date] => 2013-12-23 13:03:24.003889 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013 52 DateTime Object ( [date] => 2013-12-30 13:03:24.003889 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013 01 DateTime Object ( [date] => 2014-01-06 13:03:24.003889 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2014 02
Output for rfc.property-hooks
DateTime Object ( [date] => 2013-12-23 13:03:24.003860 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013 52 DateTime Object ( [date] => 2013-12-30 13:03:24.003860 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2013 01 DateTime Object ( [date] => 2014-01-06 13:03:24.003860 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2014 02

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:
82.05 ms | 409 KiB | 5 Q