3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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" } }

preferences:
249.25 ms | 407 KiB | 399 Q