3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "[Code][WST-2587] hello world"; print($value); $trimPattern = '/^[”’"\'(<]*@?(.+?)[.”’"\'\,!?:;)>]*$/'; print($trimPattern); $projects = array('IC', 'WST'); print($projects); $calloutPattern = "/^(?:" . implode('|', $projects) . ")-[0-9]+$/"; print($calloutPattern); $words = preg_split('/(\s+)/', $value); print($words); $callouts = array(); print($callouts);

preferences:
65.68 ms | 402 KiB | 5 Q