3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'CustomErrorLog "/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rggg£"'; preg_match('/"([^"]*)"|\S+/', $str, $matches); $errorLog = 'syslog:wtf'; var_dump(preg_match('/^syslog:/', $errorLog)); //var_dump(false !== strpos($errorLog, "syslog:"));

preferences:
36.83 ms | 402 KiB | 5 Q