3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $urlKey = 'ftrcvgbhnjk-2000-4628-20.html'; if ($result = preg_match('/-\d+-(\d+)\.html.*$/', $key, $matches)) { $result = $matches[1]; } echo $result; var_dump($matches); echo $oldUrlKey;
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: key in /in/S5NjL on line 5 0array(0) { } Notice: Undefined variable: oldUrlKey in /in/S5NjL on line 12
Output for 4.3.0 - 5.4.45
0array(0) { }