3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $address = "Flat 2 House Name 21 Another Road"; $address = preg_replace('/Flat\s\d/', '$1,', $address); echo $address;
based on NeXDT
Output for 4.3.0 - 7.2.0
, House Name 21 Another Road