3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = 'application/json; charset=utf-8'; preg_match_all('/application\/([a-zA-Z\+]+);/', $test, $matches); var_dump($matches);
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0beta2
array(2) { [0]=> array(1) { [0]=> string(17) "application/json;" } [1]=> array(1) { [0]=> string(4) "json" } }