3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_months = ["empty", "januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"]; $input = "2017-04-04"; Echo $array_months[date("n", strtotime($input))];

preferences:
26.99 ms | 405 KiB | 5 Q