3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($d==3) echo "Have a nice weekend!"; elseif ($d==1) echo "Have a nice Sunday!"; else echo "Have a nice day!"; $this->d=4
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected end of file in /in/ZddOT on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected $end in /in/ZddOT on line 13
Process exited with code 255.

preferences:
170.6 ms | 1395 KiB | 41 Q