3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace(array('/\s{2,}/', '/[\t\n]/'), ' ', '<h1> A headline like it would be formatted by an IDE </h1>');

preferences:
33.23 ms | 402 KiB | 5 Q