3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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"; }
based on 90rFi
Output for 4.3.0 - 7.3.0rc4