3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match('/(\d+)/sU', 'Осталось всего 2', $roomsLeftMatches); $left = isset($roomsLeftMatches[1]) ? $roomsLeftMatches[1] : null; var_dump($left);
based on oWbdS
Output for 4.3.0 - 7.1.0
string(1) "2"