3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $message = ' You have ordered our Undergraduate Prospectus 2015 entry. <ul> <li>Download the Undergraduate Prospectus 2015&nbsp;entry (XXMB). You will need to choose&nbsp;save&nbsp;when prompted.</li> </ul> <br /> If you are having difficulty downloading the file onto your device you can also&nbsp;<a href="http://www3.imperial.ac.uk/ugprospectus?utm_source=ProspReqUGAck&amp;utm_medium=Email&amp;utm_content=ugprospectuspage&amp;utm_campaign=CRMCommsMRA">find information about studying at Imperial online</a>.<br /> <br /> A copy of the prospectus will also be sent out to the address you have provided.&nbsp;<br /> <br /> [xxxStudent.address_1xxx][xxxStudent.address_2xxx][xxxStudent.address_3xxx]<br /> [xxxStudent.townxxx]<br /> [xxxStudent.countyxxx]<br /> [xxxStudent.postcodexxx]<br /> [xxxStudent.country_iso_2xxx]<br /> <br /> Please allow up to five working days for delivery (UK) or up to three weeks for overseas addresses.<br /> <br /> While you are waiting for your prospectus to arrive, you can go online to find out more about life at&nbsp;Imperial and opportunities to come and visit the College.<br /> <br /> For information about tuition fees and financial support please&nbsp;see&nbsp;our s<a href="http://www3.imperial.ac.uk/studentfinance?utm_source=ProspReqUGAck&amp;utm_medium=Email&amp;utm_content=studentfinance&amp;utm_campaign=CRMCommsMRA">tudent finance webpages</a>.&nbsp;<br /> Visit us on campus&nbsp;<a href="http://www3.imperial.ac.uk/visit?utm_source=ProspReqUGAck&amp;utm_medium=Email&amp;utm_content=campusvisit&amp;utm_campaign=CRMCommsMRA">by&nbsp;registering for an Open Day or campus tour</a>.<br /> Information about Student Accommodation can be found&nbsp;<a href="http://www3.imperial.ac.uk/accommodation/prospectivestudents?utm_source=ProspReqUGAck&amp;utm_medium=Email&amp;utm_content=accommodation&amp;utm_campaign=CRMCommsMRA">here on our accommodation website</a>.'; preg_match_all('/\[xxx(\w+[\.+\w+]+)xxx\]/', $message, $tags, PREG_SET_ORDER); var_dump($tags);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(7) { [0]=> array(2) { [0]=> string(25) "[xxxStudent.address_1xxx]" [1]=> string(17) "Student.address_1" } [1]=> array(2) { [0]=> string(25) "[xxxStudent.address_2xxx]" [1]=> string(17) "Student.address_2" } [2]=> array(2) { [0]=> string(25) "[xxxStudent.address_3xxx]" [1]=> string(17) "Student.address_3" } [3]=> array(2) { [0]=> string(20) "[xxxStudent.townxxx]" [1]=> string(12) "Student.town" } [4]=> array(2) { [0]=> string(22) "[xxxStudent.countyxxx]" [1]=> string(14) "Student.county" } [5]=> array(2) { [0]=> string(24) "[xxxStudent.postcodexxx]" [1]=> string(16) "Student.postcode" } [6]=> array(2) { [0]=> string(29) "[xxxStudent.country_iso_2xxx]" [1]=> string(21) "Student.country_iso_2" } }