3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('America/Los_Angeles'); $now = new DateTime('11 Nov 2014', $tz); $twoDaysAgo1 = new DateTime('11 Nov 2014 -2 days', $tz); $twoDaysAgo2 = new DateTime('11 Nov 2014 -172800 seconds', $tz); $twoDaysAgo3 = new DateTime('@' . ($now->getTimestamp() - 172800), $tz); var_dump($twoDaysAgo1->getTimestamp()); var_dump($twoDaysAgo2->getTimestamp()); var_dump($twoDaysAgo3->getTimestamp());
Output for git.master, git.master_jit, rfc.property-hooks
int(1415520000) int(1415520000) int(1415520000)

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