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){ echo "si"; }
based on sIjKe
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/nk5ha on line 8 Warning: A non-numeric value encountered in /in/nk5ha on line 8 0si
Output for 5.3.19 - 7.0.20
0si