3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getChineseZodiac($year){ switch ($year % 12) : case 0: return 'Monkey'; // Years 0, 12, 1200, 2004... case 1: return 'Rooster'; case 2: return 'Dog'; case 3: return 'Boar'; case 4: return 'Rat'; case 5: return 'Ox'; case 6: return 'Tiger'; case 7: return 'Rabit'; case 8: return 'Dragon'; case 9: return 'Snake'; case 10: return 'Horse'; case 11: return 'Lamb'; endswitch; } echo getChineseZodiac(2016);
Output for git.master, git.master_jit, rfc.property-hooks
Monkey

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