3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $type = ''; $index = -1; $t = "audio/x-wav-chunk; index=10"; $_p = strpos($t, ';'); if ($_p !== false) $type = substr($t, 0, $_p); print_r($type);
Output for 4.3.0 - 7.1.0
audio/x-wav-chunk