3v4l.org

run code in 300+ PHP versions simultaneously
<?php $UA = "TeachMe-App v000003 Android 4.4.2 on generic"; $v = substr($UA, strpos($UA, "v"), strpos($UA, "v") + 6); print_r($v);

preferences:
42.8 ms | 402 KiB | 5 Q