3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<iframe ><embed width=222>fdgwidth=700dfg</embed>sfsdfsdf</iframe>'; $matches = array(); var_dump( preg_match('~<[^>]+\swidth=["\']?(\d+)["\']?[^>]*>~', $s, $matshes) ); var_dump($matshes);

preferences:
41.46 ms | 402 KiB | 5 Q