3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('y-n'); var_dump(range(15,30)); foreach (range(15, 30) as $year) { foreach (range(1, 12) as $month) { $cardDate = sprintf('%s-%s', $year, $month); echo $currentDate .' ?= ' . $cardDate . ' = '. $currentDate > $cardDate . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
array(16) { [0]=> int(15) [1]=> int(16) [2]=> int(17) [3]=> int(18) [4]=> int(19) [5]=> int(20) [6]=> int(21) [7]=> int(22) [8]=> int(23) [9]=> int(24) [10]=> int(25) [11]=> int(26) [12]=> int(27) [13]=> int(28) [14]=> int(29) [15]=> int(30) } 11

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.85 ms | 402 KiB | 8 Q