3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "1234 4567 4568 4569 4560 3333AA 3334BB "; $allowedInputSeparators = array("\r\n", "\n", "\t", ',', ';', '|', ' '); foreach($allowedInputSeparators as $separator) { echo "Testing $separator\n"; if(preg_match($separator, $value)) { echo $separator . PHP_EOL; } }

preferences:
37.57 ms | 402 KiB | 5 Q