3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(["a","b","c"] as $a) { echo "1"; switch("a") { case "a": echo "a"; continue; } echo "2"; } echo "ende";
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /in/lohV6 on line 9 1a21a21a2ende

preferences:
43.55 ms | 406 KiB | 5 Q