菜谱项目

specialVars.test 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Special function variables
  2. -----
  3. <?php
  4. function a() {
  5. global $a, ${'b'}, $$c;
  6. static $c, $d = 'e';
  7. }
  8. -----
  9. array(
  10. 0: Stmt_Function(
  11. byRef: false
  12. name: a
  13. params: array(
  14. )
  15. returnType: null
  16. stmts: array(
  17. 0: Stmt_Global(
  18. vars: array(
  19. 0: Expr_Variable(
  20. name: a
  21. )
  22. 1: Expr_Variable(
  23. name: Scalar_String(
  24. value: b
  25. )
  26. )
  27. 2: Expr_Variable(
  28. name: Expr_Variable(
  29. name: c
  30. )
  31. )
  32. )
  33. )
  34. 1: Stmt_Static(
  35. vars: array(
  36. 0: Stmt_StaticVar(
  37. name: c
  38. default: null
  39. )
  40. 1: Stmt_StaticVar(
  41. name: d
  42. default: Scalar_String(
  43. value: e
  44. )
  45. )
  46. )
  47. )
  48. )
  49. )
  50. )