3v4l.org

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