3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uid = 'NIbW9dAJpBabSy1j5aNQdQ'; echo strlen($uid). "\n"; preg_match('(^([a-zA-Z0-9_-]{22})$)', $uid, $match); var_dump($match);
Output for 4.3.0 - 7.2.0
22 array(2) { [0]=> string(22) "NIbW9dAJpBabSy1j5aNQdQ" [1]=> string(22) "NIbW9dAJpBabSy1j5aNQdQ" }