3v4l.org

run code in 200+ PHP versions simultaneously
<?php $name = "Deadpool 2 [Region 4](Blu-ray)"; echo preg_replace('/[\[{\(].*[\]}\)]/U' , '', $name);