3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); $i = $current_month = 5; do { echo $months[$i] . "\n"; $i = ($i + 1) % 12; } while ($i != $current_month); $year = 2018; $i = $current_month = 5; do { echo $months[$i] . " $year\n"; $i = ($i + 1) % 12; if ($i == 0) $year++; } while ($i != $current_month);
Output for git.master, git.master_jit, rfc.property-hooks
Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Jun 2018 Jul 2018 Aug 2018 Sep 2018 Oct 2018 Nov 2018 Dec 2018 Jan 2019 Feb 2019 Mar 2019 Apr 2019 May 2019

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