constantString.test 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Constant string syntaxes
  2. -----
  3. <?php
  4. '';
  5. "";
  6. b'';
  7. b"";
  8. 'Hi';
  9. b'Hi';
  10. B'Hi';
  11. "Hi";
  12. b"Hi";
  13. B"Hi";
  14. '!\'!\\!\a!';
  15. "!\"!\\!\$!\n!\r!\t!\f!\v!\e!\a";
  16. "!\xFF!\377!\400!\0!";
  17. -----
  18. array(
  19. 0: Stmt_Expression(
  20. expr: Scalar_String(
  21. value:
  22. )
  23. )
  24. 1: Stmt_Expression(
  25. expr: Scalar_String(
  26. value:
  27. )
  28. )
  29. 2: Stmt_Expression(
  30. expr: Scalar_String(
  31. value:
  32. )
  33. )
  34. 3: Stmt_Expression(
  35. expr: Scalar_String(
  36. value:
  37. )
  38. )
  39. 4: Stmt_Expression(
  40. expr: Scalar_String(
  41. value: Hi
  42. )
  43. )
  44. 5: Stmt_Expression(
  45. expr: Scalar_String(
  46. value: Hi
  47. )
  48. )
  49. 6: Stmt_Expression(
  50. expr: Scalar_String(
  51. value: Hi
  52. )
  53. )
  54. 7: Stmt_Expression(
  55. expr: Scalar_String(
  56. value: Hi
  57. )
  58. )
  59. 8: Stmt_Expression(
  60. expr: Scalar_String(
  61. value: Hi
  62. )
  63. )
  64. 9: Stmt_Expression(
  65. expr: Scalar_String(
  66. value: Hi
  67. )
  68. )
  69. 10: Stmt_Expression(
  70. expr: Scalar_String(
  71. value: !'!\!\a!
  72. )
  73. )
  74. 11: Stmt_Expression(
  75. expr: Scalar_String(
  76. value: !"!\!$!
  77. !@@{ "\r" }@@!@@{ "\t" }@@!@@{ "\f" }@@!@@{ "\v" }@@!@@{ chr(27) /* "\e" */ }@@!\a
  78. )
  79. )
  80. 12: Stmt_Expression(
  81. expr: Scalar_String(
  82. value: !@@{ chr(255) }@@!@@{ chr(255) }@@!@@{ chr(0) }@@!@@{ chr(0) }@@!
  83. )
  84. )
  85. )