PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/constant/1596.php

http://github.com/facebook/hiphop-php
PHP | 100 lines | 98 code | 2 blank | 0 comment | 2 complexity | 16d0af154d43160a1ab1ab6efbb0c941 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. <<__EntryPoint>>
  3. function main_1596() {
  4. echo strlen("he\0llo");
  5. echo php_uname();
  6. echo md5('1f3870be274f6c49b3e31a0c6728957f');
  7. echo sha1('1f3870be274f6c49b3e31a0c6728957f');
  8. echo crc32('1f3870be274f6c49b3e31a0c6728957f');
  9. echo pi();
  10. echo getrandmax();
  11. echo mt_getrandmax();
  12. echo ord('abc');
  13. echo chr(27);
  14. echo strtoupper("Mary Had A \0 Lamb");
  15. echo strtolower("Mary Had A \0 Lamb");
  16. echo strcmp("Mary Had A \0Lamb", "Mary Had A Lamb") < 0;
  17. echo strncmp("Mary Had A \0 Lamb", "Mary Had A Lamb", 5) == 0;
  18. echo strcasecmp("Mary Had A \0 Lamb", "Mary Had A Lamb") < 0;
  19. echo strncasecmp("Mary Had A \0 Lamb", "Mary Had A Lamb", 5) == 0;
  20. echo addslashes("Is your name \0O'reilly?");
  21. echo htmlspecialchars("<a ref='test'>Test</a>", ENT_QUOTES);
  22. echo htmlspecialchars_decode("\0abc");
  23. echo htmlspecialchars_decode("abc\0def");
  24. echo htmlentities("<a ref='test'>Test</a>", ENT_QUOTES);
  25. echo dirname("<a ref='test'>Test</a>");
  26. echo basename("<a ref='test'>Test</a>");
  27. echo version_compare("5.1.2", "5.1.3");
  28. echo dechex(10);
  29. echo hexdec("See");
  30. echo decbin(12);
  31. echo decbin('000110011');
  32. echo decoct(264);
  33. echo octdec('77');
  34. echo octdec(decoct(45));
  35. echo str_repeat("-=", 10);
  36. echo intval(42);
  37. echo intval(4.2);
  38. echo intval('42');
  39. echo intval('+42');
  40. echo intval('-42');
  41. echo intval(042);
  42. echo intval('042');
  43. echo intval(1e10);
  44. echo intval('1e10');
  45. echo intval(0x1A);
  46. echo intval(42000000);
  47. echo intval(42, 8);
  48. echo intval('42', 8);
  49. echo substr("abcdef", -1);
  50. echo substr("abcdef", -2);
  51. echo substr("abcdef", -3, 1);
  52. echo substr("abcdef", 0, -1);
  53. echo substr("abcdef", 2, -1);
  54. echo substr("abcdef", 4, -4);
  55. echo substr("abcdef", -3, -1);
  56. echo substr("abcdef", 1);
  57. echo substr("abcdef", 1, 3);
  58. echo substr("abcdef", 0, 4);
  59. echo substr("abcdef", 0, 8);
  60. echo substr("abcdef", -1, 1);
  61. echo trim("\t\t\0These are a few words :) ... ");
  62. echo trim("\t\t\0These are a few words :) ... ", " \t.");
  63. echo trim("\x09Example string\x0A", "\x00..\x1F");
  64. echo ltrim("\t\t\0These are a few words :) ... ");
  65. echo ltrim("\t\t\0These are a few words :) ... ", " \t.");
  66. echo ltrim("\x09Example string\x0A", "\x00..\x1F");
  67. echo rtrim("\t\t\0These are a few words :) ... ");
  68. echo rtrim("\t\t\0These are a few words :) ... ", " \t.");
  69. echo rtrim("\x09Example string\x0A", "\x00..\x1F");
  70. echo chop("\t\t\0These are a few words :) ... ");
  71. echo chop("\t\t\0These are a few words :) ... ", " \t.");
  72. echo chop("\x09Example string\x0A", "\x00..\x1F");
  73. echo acos(0.5);
  74. echo acosh(0.5);
  75. echo asin(0.5);
  76. echo asinh(0.5);
  77. echo atan(0.5);
  78. echo atan2(0.5, 0.5);
  79. echo atanh(0.5);
  80. echo cos(0.5);
  81. echo cosh(0.5);
  82. echo sin(0.5);
  83. echo sinh(0.5);
  84. echo tan(0.5);
  85. echo tanh(0.5);
  86. echo exp(5.7);
  87. echo exp(12.0);
  88. echo log10(12.0);
  89. echo log(12.0);
  90. echo sqrt(2.0);
  91. echo ceil(7.9);
  92. echo floor(7.9);
  93. echo fmod(5.7, 1.3);
  94. echo ip2long("127.0.0.1");
  95. echo long2ip((string)(pow(2.0,32.0) + 1024));
  96. echo rad2deg((float)M_PI_4);
  97. echo deg2rad((float)45);
  98. }