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 = " "; if($lknd != NULL and $lknd.trim() != "") echo "OUI"; else echo "NON"; ?>
based on BeV1r
Output for 5.3.0 - 7.1.0
Warning: trim() expects at least 1 parameter, 0 given in /in/d2BV8 on line 10 OUI
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for trim() in /in/d2BV8 on line 10 OUI