3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Mr N/A N/A'; if(strpos(trim($string),'N/A') !== false) { echo 'To Home'; } else { echo $string ? 'Hi ' . $string : $string; }
Output for 5.6.30
To Home