Guest User

Untitled

a guest
Jul 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. ini_set("display_errors", 1);
  4. include("./broken-script.php");
  5.  
  6. $php53 = array(1, 2, 3);
  7. $php54 = [1, 2, 3];
  8.  
  9. $result = get_whatever()["key"];
  10.  
  11. protected $var["x"] = "Nope";
  12.  
  13. foreach [$a as $b)
  14.  
  15. function foobar[$a, $b, $c] {
  16.  
  17. $var = const[123];
  18.  
  19. function foobar($a, $b, $c] {
  20.  
  21. $var = 2];
  22.  
  23. $array = [1,[2,3],4,[5,6[7,[8],[9,10]],11],12]],15];
  24.  
  25. ⇓ ⇓
  26. echo "Here comes a $wrong['array'] access";
  27.  
  28. echo "This is only $valid[here] ...";
  29.  
  30. echo "Use {$array['as_usual']} with curly syntax.";
  31.  
  32. print "Hello " . WORLD " !";
  33.  
  34. print "<a href="' . $link . '">click here</a>";
  35. ⌞⎽⎽⎽⎽⎽⎽⎽⎽⌟⌞⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⌟⌞⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⎽⌟
  36.  
  37. print "<a href="{$link}">click here</a>";
  38.  
  39. make_url(login', 'open');
  40.  
  41. array( ⇓
  42. "key" => "value"
  43. "next" => "....",
  44. );
  45.  
  46. myfunc(123, "text", "and" "more")
  47.  
  48. mysql_evil("SELECT * FROM stuffs);
  49. print "'ok'";
  50.  
  51. func1()
  52. $var = 1 + 2; # parse error in line +2
  53.  
  54. print "Here comes the value: " $value;
  55.  
  56. print 4 + 7 $var;
  57.  
  58. $var = array("1" => $val, $val2, $val3 $val4);
  59.  
  60. function myfunc($param1, $param2 $param3, $param4)
  61.  
  62. class xyz { ⇓
  63. var $value = $_GET["input"];
  64.  
  65. $this->myFunc$VAR();
  66.  
  67. foreach $array as $key) {
  68.  
  69. function header_fallback($value, $expires = time() + 90000) {
  70.  
  71. class xyz { ⇓
  72. var $default = get_config("xyz_default");
  73.  
  74. <?php ⇓
  75. print $(document).text();
  76.  
  77. if (isset(($_GET["id"]))) {
  78.  
  79. callfunc(1, 2, );
  80.  
  81. $var = 2 * (1 + );
  82.  
  83. ↓ ⇓
  84. foreach ($array as wrong) {
  85.  
  86. if (($x == $y) && (2 == true) {
  87.  
  88. $var = 5 * {7 + $x};
  89.  
  90. print "Hello {$world[2{]} !";
  91.  
  92. function whatever() {
  93. doStuff()
  94. } ⇧
  95.  
  96. function doStuff() {
  97. if (true) ⇦
  98. print "yes";
  99. }
  100. } ⇧
  101.  
  102. function whatever {
  103. }
  104.  
  105. if {
  106. }
  107.  
  108. print <<< END
  109. Content...
  110. Content....
  111. END;
  112. # ↑ terminator isn't exactly at the line start
  113.  
  114. if (($foo < 7) && $bar) > 5 || $baz < 9) { ... }
  115.  
  116. if (empty($_POST["var"] == 1)) {
  117.  
  118. if (isset($variable !== "value")) {
  119.  
  120. if ($var => 5) { ... }
  121.  
  122. if ($xyz > 5 and < 100)
  123.  
  124. $reult = (5 < $x < 10);
  125.  
  126. print "<a href='z">Hello</a>";
  127.  
  128. $x = myfunc()
  129. if (true) {
  130.  
  131. class xyz {
  132. if (true) {}
  133. foreach ($var) {}
  134.  
  135. $var = array(1, 2, foreach($else as $_), 5, 6);
  136.  
  137. print "Oh, " . if (true) { "you!" } . " won't work";
  138. // Use a ternary condition here instead, when versed enough.
  139.  
  140. echo 123, echo 567, "huh?";
  141.  
  142. ⇓ ⇓
  143. echo "<a href="http://example.com">click here</a>";
  144.  
  145. echo "Some text", $a_variable, "and some runaway string ;
  146. success("finished");
  147.  
  148. $text = ’Something something..’ + ”these ain't quotes”;
  149.  
  150. func1()
  151. function2();
  152.  
  153. <?xml version="1.0"?>
  154.  
  155. <?php
  156. print 123;
  157.  
  158. <?php
  159. ;print 123;
Add Comment
Please, Sign In to add comment