3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print preg_replace('/-([0-9]+)$/', "$1", "asd-1132"); print_r($matches);
based on 3YbIt
Output for 5.0.4 - 7.1.0
asd1132 Notice: Undefined variable: matches in /in/CPcfb on line 4
Output for 4.3.0 - 5.0.3
asd1132 Notice: Undefined variable: matches in /in/CPcfb on line 4