3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hour = date ("G"); $minute = date ("i"); $second = date ("s"); $msg = " Today is " . date ("l, M. d, Y.") . " And the time is " . date ("g:i a"); if ($hour >= 00 && $hour <= 9 && $minute <= 59 && $second <= 59) { $greet = "Good Morning,"; } else { if ($hour >= 10 && $hour <= 11 && $minute <= 59 && $second <= 59) { $greet = "Good Day,"; } if ($hour >= 12 && $hour <= 15 && $minute <= 59 && $second <= 59) { $greet = "Good Afternoon,"; } if ($hour >= 16 && $hour <= 23 && $minute <= 59 && $second <= 59) { $greet = "Good Evening,"; } else { $greet = "Welcome,"; } } echo $greet.$msg;
Output for git.master, git.master_jit, rfc.property-hooks
Good Evening, Today is Sunday, Nov. 20, 2016. And the time is 10:07 pm

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:
124.13 ms | 405 KiB | 5 Q