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_values(array_filter($matches[1])),array_filter($matches[2]));
Output for 5.2.3 - 7.1.0
Warning: print_r() expects parameter 2 to be boolean, array given in /in/3HBEJ on line 6
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: print_r() expects parameter 2 to be boolean, array given in <b>/in/3HBEJ</b> on line <b>6</b><br />