3v4l.org

run code in 300+ PHP versions simultaneously
<?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){ echo "si"; }

preferences:
43.62 ms | 402 KiB | 5 Q