controlFlow.test 706 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Control flow statements
  2. -----
  3. <?php
  4. break;
  5. break 2;
  6. continue;
  7. continue 2;
  8. return;
  9. return $a;
  10. throw $e;
  11. label:
  12. goto label;
  13. -----
  14. array(
  15. 0: Stmt_Break(
  16. num: null
  17. )
  18. 1: Stmt_Break(
  19. num: Scalar_LNumber(
  20. value: 2
  21. )
  22. )
  23. 2: Stmt_Continue(
  24. num: null
  25. )
  26. 3: Stmt_Continue(
  27. num: Scalar_LNumber(
  28. value: 2
  29. )
  30. )
  31. 4: Stmt_Return(
  32. expr: null
  33. )
  34. 5: Stmt_Return(
  35. expr: Expr_Variable(
  36. name: a
  37. )
  38. )
  39. 6: Stmt_Throw(
  40. expr: Expr_Variable(
  41. name: e
  42. )
  43. )
  44. 7: Stmt_Label(
  45. name: label
  46. )
  47. 8: Stmt_Goto(
  48. name: label
  49. )
  50. )