3v4l.org

run code in 500+ PHP versions simultaneously
<?php if(date('n', strtotime('2018-07-31')) == date('n')){ echo 'It is current month'; } else{ echo 'not current month'; }

preferences:
51.25 ms | 1576 KiB | 5 Q