3v4l.org

run code in 200+ php & hhvm versions
<?php echo preg_replace('{aaa}', 'bbb', 'hpdaaafijfew');
Output for 7.1.25 - 7.4.0beta4
hpdbbbfijfew