3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = " ala KOM1/9/2000 7/7/2015 1-7-2001 7.7.2001 "; echo preg_replace( "\d{2}", "XX", $s); ?>
based on A4XAR
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/W5nHS on line 7
Output for 4.3.0 - 4.3.10, hhvm-3.12.0
Warning: Delimiter must not be alphanumeric or backslash in /in/W5nHS on line 8
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11 - 5.6.28
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/W5nHS on line 8