3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
I am list3