3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOT if (1 == 1) { echo 'test'; } while (blah = blah) { echo 'blah'; } EOT; $text = preg_replace('/\) *\n(?=\n{)/', ")", $text); echo $text;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
148.92 ms | 1602 KiB | 9 Q