3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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; } }
based on q89jk
Output for 5.4.0 - 7.3.0rc6
15-10 ?= 15-1 = 1 15-10 ?= 15-2 = 15-10 ?= 15-3 = 15-10 ?= 15-4 = 15-10 ?= 15-5 = 15-10 ?= 15-6 = 15-10 ?= 15-7 = 15-10 ?= 15-8 = 15-10 ?= 15-9 = 15-10 ?= 15-10 = 15-10 ?= 15-11 = 15-10 ?= 15-12 = 15-10 ?= 16-1 = 15-10 ?= 16-2 = 15-10 ?= 16-3 = 15-10 ?= 16-4 = 15-10 ?= 16-5 = 15-10 ?= 16-6 = 15-10 ?= 16-7 = 15-10 ?= 16-8 = 15-10 ?= 16-9 = 15-10 ?= 16-10 = 15-10 ?= 16-11 = 15-10 ?= 16-12 = 15-10 ?= 17-1 = 15-10 ?= 17-2 = 15-10 ?= 17-3 = 15-10 ?= 17-4 = 15-10 ?= 17-5 = 15-10 ?= 17-6 = 15-10 ?= 17-7 = 15-10 ?= 17-8 = 15-10 ?= 17-9 = 15-10 ?= 17-10 = 15-10 ?= 17-11 = 15-10 ?= 17-12 = 15-10 ?= 18-1 = 15-10 ?= 18-2 = 15-10 ?= 18-3 = 15-10 ?= 18-4 = 15-10 ?= 18-5 = 15-10 ?= 18-6 = 15-10 ?= 18-7 = 15-10 ?= 18-8 = 15-10 ?= 18-9 = 15-10 ?= 18-10 = 15-10 ?= 18-11 = 15-10 ?= 18-12 = 15-10 ?= 19-1 = 15-10 ?= 19-2 = 15-10 ?= 19-3 = 15-10 ?= 19-4 = 15-10 ?= 19-5 = 15-10 ?= 19-6 = 15-10 ?= 19-7 = 15-10 ?= 19-8 = 15-10 ?= 19-9 = 15-10 ?= 19-10 = 15-10 ?= 19-11 = 15-10 ?= 19-12 = 15-10 ?= 20-1 = 15-10 ?= 20-2 = 15-10 ?= 20-3 = 15-10 ?= 20-4 = 15-10 ?= 20-5 = 15-10 ?= 20-6 = 15-10 ?= 20-7 = 15-10 ?= 20-8 = 15-10 ?= 20-9 = 15-10 ?= 20-10 = 15-10 ?= 20-11 = 15-10 ?= 20-12 = 15-10 ?= 21-1 = 15-10 ?= 21-2 = 15-10 ?= 21-3 = 15-10 ?= 21-4 = 15-10 ?= 21-5 = 15-10 ?= 21-6 = 15-10 ?= 21-7 = 15-10 ?= 21-8 = 15-10 ?= 21-9 = 15-10 ?= 21-10 = 15-10 ?= 21-11 = 15-10 ?= 21-12 = 15-10 ?= 22-1 = 15-10 ?= 22-2 = 15-10 ?= 22-3 = 15-10 ?= 22-4 = 15-10 ?= 22-5 = 15-10 ?= 22-6 = 15-10 ?= 22-7 = 15-10 ?= 22-8 = 15-10 ?= 22-9 = 15-10 ?= 22-10 = 15-10 ?= 22-11 = 15-10 ?= 22-12 = 15-10 ?= 23-1 = 15-10 ?= 23-2 = 15-10 ?= 23-3 = 15-10 ?= 23-4 = 15-10 ?= 23-5 = 15-10 ?= 23-6 = 15-10 ?= 23-7 = 15-10 ?= 23-8 = 15-10 ?= 23-9 = 15-10 ?= 23-10 = 15-10 ?= 23-11 = 15-10 ?= 23-12 = 15-10 ?= 24-1 = 15-10 ?= 24-2 = 15-10 ?= 24-3 = 15-10 ?= 24-4 = 15-10 ?= 24-5 = 15-10 ?= 24-6 = 15-10 ?= 24-7 = 15-10 ?= 24-8 = 15-10 ?= 24-9 = 15-10 ?= 24-10 = 15-10 ?= 24-11 = 15-10 ?= 24-12 = 15-10 ?= 25-1 = 15-10 ?= 25-2 = 15-10 ?= 25-3 = 15-10 ?= 25-4 = 15-10 ?= 25-5 = 15-10 ?= 25-6 = 15-10 ?= 25-7 = 15-10 ?= 25-8 = 15-10 ?= 25-9 = 15-10 ?= 25-10 = 15-10 ?= 25-11 = 15-10 ?= 25-12 = 15-10 ?= 26-1 = 15-10 ?= 26-2 = 15-10 ?= 26-3 = 15-10 ?= 26-4 = 15-10 ?= 26-5 = 15-10 ?= 26-6 = 15-10 ?= 26-7 = 15-10 ?= 26-8 = 15-10 ?= 26-9 = 15-10 ?= 26-10 = 15-10 ?= 26-11 = 15-10 ?= 26-12 = 15-10 ?= 27-1 = 15-10 ?= 27-2 = 15-10 ?= 27-3 = 15-10 ?= 27-4 = 15-10 ?= 27-5 = 15-10 ?= 27-6 = 15-10 ?= 27-7 = 15-10 ?= 27-8 = 15-10 ?= 27-9 = 15-10 ?= 27-10 = 15-10 ?= 27-11 = 15-10 ?= 27-12 = 15-10 ?= 28-1 = 15-10 ?= 28-2 = 15-10 ?= 28-3 = 15-10 ?= 28-4 = 15-10 ?= 28-5 = 15-10 ?= 28-6 = 15-10 ?= 28-7 = 15-10 ?= 28-8 = 15-10 ?= 28-9 = 15-10 ?= 28-10 = 15-10 ?= 28-11 = 15-10 ?= 28-12 = 15-10 ?= 29-1 = 15-10 ?= 29-2 = 15-10 ?= 29-3 = 15-10 ?= 29-4 = 15-10 ?= 29-5 = 15-10 ?= 29-6 = 15-10 ?= 29-7 = 15-10 ?= 29-8 = 15-10 ?= 29-9 = 15-10 ?= 29-10 = 15-10 ?= 29-11 = 15-10 ?= 29-12 = 15-10 ?= 30-1 = 15-10 ?= 30-2 = 15-10 ?= 30-3 = 15-10 ?= 30-4 = 15-10 ?= 30-5 = 15-10 ?= 30-6 = 15-10 ?= 30-7 = 15-10 ?= 30-8 = 15-10 ?= 30-9 = 15-10 ?= 30-10 = 15-10 ?= 30-11 = 15-10 ?= 30-12 =