3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_day = date('j'); $current_month = date('n'); $season = ''; switch($current_month): case 1: $season = $current_day<=6 ? 'Christmastide' : 'Not Christmastide'; break; case 12: $season = $current_day>=25 ? 'Christmastide' : 'Not Christmastide'; break; default: $season = 'Not Christmastide'; break; endswitch; echo $season;
Output for git.master, git.master_jit, rfc.property-hooks
Not Christmastide

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