3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = https://www.google.co.uk/ if (strpos($url, 'swooneditions.com') !== false) { $url = 'swooneditions.com'; }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25, 5.5.0 - 5.5.9
Parse error: syntax error, unexpected ':' in /in/vDvTX on line 2
Process exited with code 255.

preferences:
200.13 ms | 1387 KiB | 72 Q