3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lib_path = 'core/modules/statistics/statistics.js'; $re = '/<script src=".*?' . preg_quote($lib_path, '/.') . '.*?">/is'; $content = 'Some content <script src="http://example.com/core/modules/statistics/statistics.js"></script> Etc.'; echo preg_quote($lib_path); var_dump(preg_match($re, $content));

preferences:
33.86 ms | 402 KiB | 5 Q