3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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; }
Output for 4.3.0 - 7.2.0
0 -> a