3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filename = "[Study] - Walton, Charles E 01-01-2012.txt"; $date = preg_match("/(.*)(\d+-\d+-\d+)(.*)/", $filename, $matches); print_r ($matches);
based on 0TXIR
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => [Study] - Walton, Charles E 01-01-2012.txt [1] => [Study] - Walton, Charles E 0 [2] => 1-01-2012 [3] => .txt )
Output for hhvm-3.10.0

Process exited with code 153.