3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = 'words=motherfucker()'; if (preg_match('/^([^|=]*)(?:|(.*))(?:=(.*\(\)))?$/', $match, $var)) { print_r($var); } else { print('Not matching :('); }

preferences:
61.67 ms | 402 KiB | 5 Q