3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bucket = preg_quote('lookmia-local-us', '/'); $bucket = 'lookmia-local-us'; preg_match("#$bucket#", 'https://lookmia-local-us.s3.amazonaws.com', $matches); var_dump($matches);
based on sAlrE
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
array(1) { [0]=> string(16) "lookmia-local-us" }