3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test="AdGroup update failed: [AdGroupServiceError.DUPLICATE_ADGROUP_NAME @ operations[6].operand.name; trigger:'prince2 training west yorkshire', AdGroupServiceError.DUPLICATE_ADGROUP_NAME @ operations[8].operand.name; trigger:'prince ii training and exam']"; $result = array(); preg_match_all("/trigger:'([^']*?)'/im", $test, $result); var_dump($result);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(2) { [0]=> array(2) { [0]=> string(41) "trigger:'prince2 training west yorkshire'" [1]=> string(37) "trigger:'prince ii training and exam'" } [1]=> array(2) { [0]=> string(31) "prince2 training west yorkshire" [1]=> string(27) "prince ii training and exam" } }