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:
71.75 ms | 406 KiB | 5 Q