3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
-1