3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = preg_replace('/(?<=[a-zA-Z])([A-Z])(?=[a-zA-Z])/', "_$1", 'spbAddress12'); print preg_replace('/([a-zA-Z])([0-9])/', "$1_$2", $result);
based on 00DIW
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
spb_Address_12
Output for hhvm-3.10.0

Process exited with code 153.