3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('/@@SOMEPHENTITY@@/', 'XXSOMEPHENTITY@@', 'This sentence includes both @@SOMEPHENTITY@@ and XXSOMEPHENTITY@@ but only the replacement will show up in double'));

preferences:
53.21 ms | 402 KiB | 5 Q