run code in 200+ php & hhvm versions
Bugs & Features
<?php function truthy($value){ return in_array($value, array(true,1,'y','yes','true'), true); } var_dump(truthy('n')); var_dump(truthy('yes')); var_dump(truthy('no')); var_dump(truthy('false')); var_dump(truthy(false));
based on KKBDf

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page