3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "2015-04-01"; $temp = explode("-", $date); $year = $temp['0']; $month = $temp['1']; $day = $temp['2']; if(checkdate($month, $day, $year) === false){ echo "11"; }

preferences:
37.4 ms | 402 KiB | 5 Q