$x = 3; SWITCH: for ($x) { if (1) { print '1'; last SWITCH; }; if (2) { print '2'; last SWITCH; }; if (3) { print '3'; last SWITCH; }; print 'caught'; }