3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "Coupon 123"; preg_match("^Coupon (\w+)", $text, $matches); var_dump($matches);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: preg_match(): No ending delimiter '^' found in /in/GipNC on line 5 NULL
Output for hhvm-3.22.0
Warning: No ending delimiter '^' found: [^Coupon (\w+)] in /in/GipNC on line -1 NULL
Output for hhvm-3.18.5 - 3.21.3
Warning: No ending delimiter '^' found: [^Coupon (\w+)] in /in/GipNC on line 5 NULL