3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* $str = 'test1234'; preg_match_all('!\d+!', $str, $matches);*/ /*for ($matches = 0; $matches <9; $matches++) { $letters = range('a','j'); var_dump($letters[$matches]); }*/ $str = 'test1234'; preg_match_all('!\d+!', $str, $matches); $matches = preg_replace("/[^0-9]/","a-j",$matches); var_dump($matches);
based on 0A53V
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Notice: Array to string conversion in /in/nvqRG on line 14 array(1) { [0]=> string(15) "a-ja-ja-ja-ja-j" }
Output for hhvm-3.22.0
Notice: Array to string conversion in /in/nvqRG on line -1 array(1) { [0]=> string(15) "a-ja-ja-ja-ja-j" }