3v4l.org

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

preferences:
32.29 ms | 405 KiB | 5 Q