3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (24*60*60*60 < $diff) { // 60 days echo 'week'; } elseif (24*60*60 < $diff) { // 24 hours echo 'day'; } elseif (60*60 < $diff) { // 60 minutes echo 'hour'; } elseif (2*60 < $diff) { // 2 minutes echo 'minute'; } echo 'second';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $diff in /in/9cqOX on line 2 Warning: Undefined variable $diff in /in/9cqOX on line 4 Warning: Undefined variable $diff in /in/9cqOX on line 6 Warning: Undefined variable $diff in /in/9cqOX on line 8 second

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