3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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));
Output for 4.3.11 - 5.6.25, 7.0.0 - 7.1.0
core/modules/statistics/statistics\.js Warning: preg_match(): Unknown modifier 'o' in /in/NP8AD on line 11 bool(false)
Output for hhvm-3.10.0 - 3.12.0
core/modules/statistics/statistics\.js Warning: Unknown modifier 'o': [/(<script src=").*?(core/modules/statistics/statistics\.js).*?(">)/is] in /in/NP8AD on line 11 bool(false)
Output for 4.3.0 - 4.3.10
core/modules/statistics/statistics\.js Warning: Unknown modifier 'o' in /in/NP8AD on line 11 bool(false)