3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentMonth = date("n"); $currentYear = date("Y"); echo $currentMonth . "\n"; echo $currentYear; $firstDayOfTheMonth = mktime(0, 0, 0, $month, 1, $year); $d = getdate($firstDayOfTheMonth); // Vasarnap helyett hetfo az elso nap a heten. $dayOfTheWeekOfFirstDayOfTheMonth = (6 + $d["wday"]) % 7 + 1; $totalDaysInCurrentMonth = date("t"); $kellenekUresNapokAHonapVegen = true; echo $firstDayOfTheMonth . "\n"; echo $d . "\n"; echo $dayOfTheWeekOfFirstDayOfTheMonth . "\n"; echo $totalDaysInCurrentMonth . "\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
12 2012 Warning: Undefined variable $month in /in/iLbYb on line 7 Warning: Undefined variable $year in /in/iLbYb on line 7 1354316400 Warning: Array to string conversion in /in/iLbYb on line 15 Array 6 31

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