3v4l.org

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

preferences:
37.69 ms | 402 KiB | 5 Q