3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $categ = "bonnet / bonnet enfant"; if(strstr($resGlobale['NomCategorie'], 'enfant') === TRUE){ echo "test1"; } else { echo "text2"; }
based on 3ekrN
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: resGlobale in /in/mRN7B on line 5 text2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: resGlobale in /in/mRN7B on line 5 text2