3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print preg_match('/\/?(.*).(.*)$/', 'weweasdweweasdasd.jpg', $matches); print_r ($matches);
based on EeI5c
Output for 4.3.0 - 7.1.0
1Array ( [0] => weweasdweweasdasd.jpg [1] => weweasdweweasdasd.jp [2] => )