3v4l.org

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

preferences:
34.55 ms | 402 KiB | 5 Q