3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = "Type"; //creating a list if (strpos($name, "type")) { $listValue = '1'; } elseif (strpos($name, "colour")) { $listValue = '2'; } else { $listValue = '3'; } echo "I am list" . $listValue; ?>
Output for 4.3.0 - 7.2.0
I am list3