3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $this = "Type" //creating a list if (strpos($this, "type")) { $listValue = '1'; } elseif (strpos($this, "colour")) { $listValue = '2'; } else { $listValue = '3'; } echo "I am list" . $listValue; ?>
Output for 5.3.0 - 5.4.27
Fatal error: Cannot re-assign $this in /in/GHnDt on line 5
Process exited with code 255.