3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP BUG // TESTED IN // PHP 5.3.27 (cli) (built: Oct 23 2013 15:35:54) // Copyright (c) 1997-2013 The PHP Group // Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies // PHP 5.5.16-pl0-gentoo (cli) (built: Sep 30 2014 10:51:53) // Copyright (c) 1997-2014 The PHP Group // Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies // with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies $now1 = new DateTime(); $now2 = new DateTime(); $now2->sub(new \DateInterval('P1D')); echo $now1->getTimestamp() - $now2->getTimestamp(); // output: 90000 $now1 = new DateTime(); $now2 = new DateTime(); $now2->sub(new \DateInterval('P2D')); echo $now1->getTimestamp() - $now2->getTimestamp(); // output: 176400 // NOT APPEARING IN // PHP 5.3.10-1ubuntu3.13 with Suhosin-Patch (cli) (built: Jul 7 2014 18:54:55) // Copyright (c) 1997-2012 The PHP Group // Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies // with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
Output for git.master, git.master_jit, rfc.property-hooks
86400172800

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:
39.55 ms | 401 KiB | 8 Q