3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function retour1($parametre="OK") { return $parametre; } function retour2($parametre=NULL) { if (!$parametre) { $parametre="OK"; } return $parametre; } echo retour1(); echo retour1("OK"); echo retour2(); echo retour2("OK");
Output for 4.3.0 - 7.2.0
OKOKOKOK