3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = strtotime("now"); $b = strtotime("+0"); $a0 = strtotime("now+0"); $a1 = strtotime("now+1"); $a2 = strtotime("now+2"); $a22 = strtotime("now + 2"); $aday = strtotime("now+86400"); $aday2 = strtotime("now + 86400"); echo "a: "; echo $a; echo " (" . date("c", $a) . ")"; echo "\na-b: "; echo $a-$b; echo "\na-a0: "; echo $a-$a0; echo "\na-a1: "; echo $a-$a1; echo "\na-a2: "; echo $a-$a2; echo "\na-a22: "; echo $a-$a22; echo "\na-aday: "; echo $a-$aday; echo " // $a - $aday (" . date("c", $a-$aday) . ")"; echo "\na-aday2: "; echo $a-$aday2; echo " // $a - $aday2 (" . date("c", $a-$aday2) . ")";
Output for git.master, git.master_jit, rfc.property-hooks
a: 1576068271 (2019-12-11T13:44:31+01:00) a-b: -3600 a-a0: -3600 a-a1: 0 a-a2: 3600 a-a22: 1576068271 a-aday: 1576068271 // 1576068271 - (2019-12-11T13:44:31+01:00) a-aday2: 1576068271 // 1576068271 - (2019-12-11T13:44:31+01:00)

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:
125.77 ms | 406 KiB | 5 Q