3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = " [xxxStudent.address_1xxx][xxxStudent.address_2xxx][xxxStudent.address_3xxx] [xxxStudent.townxxx] [xxxStudent.countyxxx] [xxxStudent.postcodexxx] [xxxStudent.country_iso_2xxx]"; preg_match_all('/\[xxx(\w+[\.+\w+]+)xxx\]/', $message, $tags, PREG_SET_ORDER); var_dump($tags);

preferences:
40.63 ms | 402 KiB | 5 Q