3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'abcefghijklmnopqrstuvwxyz0123456789'; // try to match all characters not within out pattern preg_match_all("/[^b]/", $string, $matches); // loop through the matches with foreach foreach($matches[0] as $value) { echo $value; }
based on snnVZ
Output for 4.3.0 - 7.3.0rc4
acefghijklmnopqrstuvwxyz0123456789