3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = '11'; $month = Date("m", strtotime("2017-" . $month . "-01" . " +1 month")); echo $month;

preferences:
24.14 ms | 405 KiB | 5 Q