3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<p>Paragraaf</p><h1>Kop 1</h1><h2>Kop 2</h2>'; echo $html; echo PHP_EOL; echo PHP_EOL; $html = preg_replace('#<p>.*<\/p>#','',$html); echo $html;

preferences:
76.42 ms | 404 KiB | 5 Q