3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('y-n'); 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; } }

preferences:
52.54 ms | 402 KiB | 5 Q