controlFlow.test 786 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: Identifier(
  46. name: label
  47. )
  48. )
  49. 8: Stmt_Goto(
  50. name: Identifier(
  51. name: label
  52. )
  53. )
  54. )