Advertisement
Pirozek

Untitled

Dec 3rd, 2019
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.13 KB | None | 0 0
  1. <?php
  2.  
  3. declare(strict_types=1);
  4.  
  5. class Foo
  6. {
  7.     public static function foo($x, $z): string
  8.     {
  9.         global $k, $s1;
  10.         $obj->foo()->bar();
  11.         $arr = [0 => "zero", 1 => "one"];
  12.         call_func(
  13.             function () {
  14.                 return FALSE;
  15.             }
  16.         );
  17.         for ($i = 0; $i < $x; $i++) {
  18.             $y += ($y ^ 0x123) << 2;
  19.         }
  20.         $a = NULL;
  21.         $k = $x > 15 ? 1 : 2;
  22.         $k = $x ?: 0;
  23.         $k = $x ?? $z;
  24.         $k = $x <=> $z;
  25.         do {
  26.             try {
  27.                 if (!0 > $x && !$x < 10) {
  28.                     while ($x != $y) {
  29.                         $x = f($x * 3 + 5);
  30.                     }
  31.                     $z += 2;
  32.                 } elseif ($x > 20) {
  33.                     $z = $x << 1;
  34.                 } else {
  35.                     $z = $x | 2;
  36.                 }
  37.                 $j = (int)$z;
  38.                 switch ($j) {
  39.                     case 0:
  40.                         $s1 = 'zero';
  41.                         break;
  42.                     case 2:
  43.                         $s1 = 'two';
  44.                         break;
  45.                     default:
  46.                         $s1 = 'other';
  47.                 }
  48.             } catch (exception $e) {
  49.                 $t = $one[0];
  50.                 $u = $one['str'];
  51.                 $v = $one[$x[1]];
  52.                 echo $val{foo . $num}[$cell{$a}];
  53.             } finally {
  54.                 // do something
  55.             }
  56.         } while ($x < 0);
  57.  
  58.         return $x;
  59.     }
  60.  
  61.     public function __toString()
  62.     {
  63.         return 'aaa';
  64.     }
  65. }
  66.  
  67. function bar(): Foo
  68. {
  69.     return new Foo(1, 2);
  70. }
  71.  
  72. ?>
  73. <div><?= Foo::foo(1, 2) ?></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement