3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "4/23/15"; preg_match('~^(1|2|3|4|5|6|7|8|9|10)\/(23)\/[0-9]{2}$~', $date, $m); var_dump($m);
based on WL0WN
Output for 4.3.0 - 7.2.0
array(3) { [0]=> string(7) "4/23/15" [1]=> string(1) "4" [2]=> string(2) "23" }