3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "827/1/2007KOM1/9/2000 7/7/2015 1-7-2001 7.7.2001 "; //echo preg_replace("/(\d+)-(\d+)-(\d+)/", "$2/$3/$1", "2007-01-25"); echo preg_replace( "|(\s\d+/)(\d/20)|", "${1}0$2", $s); ?>
based on kRa18
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: 1 in /in/4ptaN on line 7 827/1/2007KOM1/9/200007/2015 1-7-2001 7.7.2001
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: 1 in /in/4ptaN on line 7 827/1/2007KOM1/9/200007/2015 1-7-2001 7.7.2001