3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $nom = "doe"; $prenom = "john"; //echo $nom; //$nom = ucwords(strtolower($nom)); //echo $nom; $lknd = " A "; if($lknd != NULL and trim($lknd) != "") echo "OUI"; else echo "NON"; echo "<".$lknd.">\n"; echo "<".trim($lknd).">"; ?>
based on WVVg1
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
OUI< A > <A>