3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "sharing.buttons.facebook_share({ 'type': 'subbuzz', 'replace': this, 'subbuzz': '4387992_9896828', 'subbuzz_no': '2', 'description': unescape(''), 'blurb': unescape(''), 'gt_label': '/static/2016-11/1/12/asset/buzzfeed-prod-web09/sub-buzz-13844-1478018713-1.png' });"; var_dump(preg_match_all("/'gt_label':\s*'(.*?)'/", $str, $matches)); var_dump($matches);
based on dYCAn
Output for 5.6.0 - 7.3.0alpha1
int(1) array(2) { [0]=> array(1) { [0]=> string(92) "'gt_label': '/static/2016-11/1/12/asset/buzzfeed-prod-web09/sub-buzz-13844-1478018713-1.png'" } [1]=> array(1) { [0]=> string(78) "/static/2016-11/1/12/asset/buzzfeed-prod-web09/sub-buzz-13844-1478018713-1.png" } }