3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = '<iframe width="800"><embed width=300>fdgdfg</embed>sfsdfsdf</iframe>'; var_dump( preg_match('~width=["\']?(\d+)["\']?~', $s) );
based on 6sIJv
Output for 4.3.0 - 7.1.0
int(1)