3v4l.org

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

preferences:
44.58 ms | 402 KiB | 5 Q