3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'http://www.localhost.dev/skelbimas/ideti/uzsienio-objektai/11/'; preg_match('#/uzsienio-objektai/[-a-z0-9]*?([0-9]+)/?$#', $url, $matches); var_dump($matches);
Output for 4.3.0 - 7.2.0
array(2) { [0]=> string(22) "/uzsienio-objektai/11/" [1]=> string(2) "11" }