3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '{{{'; echo '+++'.preg_replace('/({|}|&#123;|&#125;|&#x7b;|&#x7d;)(?=\S)/', '$1 ', $value).'+++';

preferences:
57.04 ms | 405 KiB | 5 Q