3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "5+2(23*5)(1-2)"; $regex = "/(\d|\))\(/"; preg_match_all($regex, $test, $match); var_dump($match);

preferences:
31.64 ms | 402 KiB | 5 Q