3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = 'i2-Connections_3.2.1.4-REG-VA-AU-LM-I.dat'; $name = substr($val,(strrpos($val,"_3")+5)); //$name = substr($name,(strrpos($name,"dat/")+4)); echo $name . "\n"; if(strpos($name,'AU') !== false){ if(strpos($name,'VA') !== false){ echo "si"; } }
based on U3BVt
Output for 5.3.19 - 7.3.1
1.4-REG-VA-AU-LM-I.dat si