3v4l.org

run code in 300+ PHP versions simultaneously
<?php // eliminar esta etiqueta usando expresiones regulares php // https://es.stackoverflow.com/q/131277/127 $str = '<p><img src="img/something.jpg" width="1249124" height="20" alt="foo" /></p>'; $str = preg_replace('%(.*?)<p>\s*(<img[^<]+?)\s*</p>(.*)%is', '$1$2$3', $str); //Imprimir el resultado echo $str;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
vld0.0140.01014.69
rfc.partials0.0070.01116.99

preferences:
449.74 ms | 454 KiB | 5 Q