3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "__('This is a (TEST) all of this i want') i dont want any of this; __(extract this)"; if (preg_match_all('~__(\(((?:[^()]++|(?1))*)\))~', $s, $matches)) { print_r($matches[2]); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
208.17 ms | 2256 KiB | 10 Q