3v4l.org

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