3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(?<!<br>)(?<!\s)\s*(\((?:(?:(?!<br>|\(|\)).)*(?:\((?:(?!<br>|\(|\)).)*\))?)*?\))\s*(\{)/si'; $test_string = '(""L"",function(){})'; echo preg_replace($regex,' $1 $2',$test_string);

preferences:
41.2 ms | 402 KiB | 5 Q