3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $subject = 'd-123'; var_dump( preg_match('/\bd-(\d+)\b/', $subject, $matches) ); var_dump( $matches );
Output for 4.3.0 - 7.2.0
int(1) array(2) { [0]=> string(5) "d-123" [1]=> string(3) "123" }