3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pref = "東京"; swith($pref) { case "東京": case "千葉": case "神奈川": echo "関東です"; default: echo "該当なし" }
Output for 8.4.1 - 8.4.25, 8.5.0 - 8.5.10
Parse error: syntax error, unexpected token "{" in /in/Z8jpp on line 5
Process exited with code 255.
Output for 8.2.31 - 8.2.33, 8.3.0 - 8.3.33
Parse error: syntax error, unexpected token "case" in /in/Z8jpp on line 6
Process exited with code 255.

preferences:
53.3 ms | 791 KiB | 3 Q