3v4l.org

run code in 300+ PHP versions simultaneously
<?php $embedCode = '<iframe width="800"> </iframe>'; echo preg_replace('/(<iframe[^>]*\swidth=")(\d+)("\s.*)/', '${1}' . '666' . '{3}', $embedCode);

preferences:
66.64 ms | 404 KiB | 5 Q