3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.27
Fatal error: Cannot re-assign $this in /in/GHnDt on line 5
Process exited with code 255.

preferences:
186.57 ms | 1395 KiB | 64 Q