3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $tests = array( 'now', 'now +2', 'now +2 hours', 'now +1.5 hours', 'now +2.5 hours', 'now +3.5 hours', 'now +2,5 hours', 'now +2 5 hours', 'now +7 hours', ); foreach ($tests as $test) { printf("%-20s %s\n", $test, date('r', strtotime($test))); }
Output for git.master, git.master_jit, rfc.property-hooks
now Wed, 02 Apr 2014 08:01:40 +0000 now +2 Wed, 02 Apr 2014 06:01:40 +0000 now +2 hours Wed, 02 Apr 2014 10:01:40 +0000 now +1.5 hours Wed, 02 Apr 2014 12:01:40 +0000 now +2.5 hours Wed, 02 Apr 2014 11:01:40 +0000 now +3.5 hours Wed, 02 Apr 2014 10:01:40 +0000 now +2,5 hours Wed, 02 Apr 2014 11:01:40 +0000 now +2 5 hours Wed, 02 Apr 2014 11:01:40 +0000 now +7 hours Wed, 02 Apr 2014 15:01:40 +0000

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:
40.08 ms | 402 KiB | 8 Q