3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $re = '/([\D]+)|([\d]+)/'; $str = 'a74b8c0d3845e7'; preg_match_all($re, $str, $matches); print_r(array_combine(array_values(array_filter($matches[1])),array_filter($matches[2]))));
Output for 5.3.0 - 5.5.12
Parse error: syntax error, unexpected ')' in /in/dSHF8 on line 6
Process exited with code 255.