3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result=FALSE; $date ="1923-56-56"; $pattern = '/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/'; preg_match($pattern, $date, $matches); if (is_array($matches) AND count($matches) >=1) { print "Valid Date"; }else{ print "Not Valid Date"; }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Valid Date
Output for hhvm-3.10.0

Process exited with code 153.