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((bool) preg_match('/^syslog:/', $errorLog)); //var_dump(false !== strpos($errorLog, "syslog:")); var_export(['CustomLog', 'logs/access_log', '"%h %l %u %t \"%r\" %>s %b"']);

preferences:
31.66 ms | 402 KiB | 5 Q