3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'abcefghijklmnopqrstuvwxyz0123456789'; // echo our string preg_match("/[^b]/", $string, $matches); // loop through the matches with foreach foreach($matches as $key=>$value) { echo $key.' -> '.$value; }

preferences:
40.69 ms | 402 KiB | 5 Q