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.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /in/lohV6 on line 9 1a21a21a2ende

preferences:
43.77 ms | 406 KiB | 5 Q