3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content = '<a href="http://www.amazon.com/dp/B004JKDN3I/?tag=longshan07-20" target="_blank">Amazon</a>上目前价格降至$160.59'; preg_match('@href="(http://www\.amazon\.com/(dp|product)/(.*?)(/|%3F|\?)"@',$content,$m); print_r($m);
Output for 5.2.0 - 5.6.25, 7.0.0 - 7.1.0
Warning: preg_match(): Compilation failed: missing ) at offset 60 in /in/E50W3 on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: missing ) at offset 60 in /in/E50W3 on line 3
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Compilation failed: missing ) at offset 60 in /in/E50W3 on line 3 Array ( )
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: missing ) at offset 60 in /in/E50W3 on line 3 Array ( )