repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/new/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/new/000.php
<?php new A; new A($b); // class name variations new $a(); new $a['b'](); new A::$b(); // DNCR object access new $a->b(); new $a->b->c(); new $a->b['c'](); // test regression introduces by new dereferencing syntax (new A);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/004.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/004.php
<?php $value = match (1) { 0, 1, => 'Foo', default, => 'Bar', };
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/001.php
<?php $value = match (1) { // list of conditions 0, 1 => 'Foo', };
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/002.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/002.php
<?php $result = match ($operator) { BinaryOperator::ADD => $lhs + $rhs, };
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/003.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/003.php
<?php $value = match ($char) { 1 => '1', default => 'default' };
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/match/000.php
<?php echo match (1) { 0 => 'Foo', 1 => 'Bar', };
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/throw/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/throw/000.php
<?php test(throw $x); $a ?? throw new Exception;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/exit/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/exit/000.php
<?php exit; exit(); exit('Die!'); die; die(); die('Exit!'); exit(status: 42); exit(...$args); exit($a, $b); \exit($a); exit(...); DIE($a, $b);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/includeAndEval/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/includeAndEval/000.php
<?php include 'A.php'; include_once 'A.php'; require 'A.php'; require_once 'A.php'; eval('A');
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/alternative_array_syntax/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/alternative_array_syntax/001.php
<?php $a{'b'}; $a{'b'}(); $a->b{'c'}; $a->b(){'c'}; A::$b{'c'}; A{0}; A::B{0}; new $array{'className'}; new $a->b{'c'}();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/alternative_array_syntax/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/alternative_array_syntax/000.php
<?php $a{'b'}; $a{'b'}(); $a->b{'c'}; $a->b(){'c'}; A::$b{'c'}; A{0}; A::B{0}; new $array{'className'}; new $a->b{'c'}();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/comparison/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/comparison/000.php
<?php $a < $b; $a <= $b; $a > $b; $a >= $b; $a == $b; $a === $b; $a != $b; $a !== $b; $a <=> $b; $a instanceof B; $a instanceof $b;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/math/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/math/000.php
<?php // unary ops ~$a; +$a; -$a; // binary ops $a & $b; $a | $b; $a ^ $b; $a . $b; $a / $b; $a - $b; $a % $b; $a * $b; $a + $b; $a << $b; $a >> $b; $a ** $b; // associativity $a * $b * $c; $a * ($b * $c); // precedence $a + $b * $c; ($a + $b) * $c; // pow is special $a ** $b ** $c; ($a ** $b) ** $c;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arraySpread/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arraySpread/000.php
<?php $array = [1, 2, 3]; function getArr() { return [4, 5]; } function arrGen() { for ($i = 11; $i < 15; $i++) { yield $i; } } [...[]]; [...[1, 2, 3]]; [...$array]; [...getArr()]; [...arrGen()]; [...new ArrayIterator(['a', 'b', 'c'])]; [0, ...$array, ...getArr(), 6, 7, 8, 9, 10, ...arrGen()]; [0...
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/closure_use_trailing_comma/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/closure_use_trailing_comma/000.php
<?php function () use ( $a, ) {};
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/print/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/print/000.php
<?php print $a;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrayEmptyElemens/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrayEmptyElemens/000.php
<?php [1,, 2]; array(1,, 2);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/nullsafe/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/nullsafe/000.php
<?php $a?->b; $a?->b($c); new $a?->b; "{$a?->b}"; "$a?->b";
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/errorSuppress/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/errorSuppress/000.php
<?php @$a;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrow_function/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrow_function/000.php
<?php fn(bool $a) => $a; fn($x = 42) => $x; static fn(&$x) => $x; fn&($x) => $x; fn($x, ...$rest) => $rest; fn(): int => $x; fn($a, $b) => $a and $b; fn($a, $b) => $a && $b;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/exprInIsset/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/exprInIsset/000.php
<?php // This is legal. isset(($a), (($b))); // This is illegal, but not a syntax error. isset(1 + 1);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/issetAndEmpty/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/issetAndEmpty/000.php
<?php isset($a); isset($a, $b, $c); empty($a); empty(foo()); empty(array(1, 2, 3));
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/varVarPos/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/varVarPos/000.php
<?php $$$x;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/ternaryAndCoalesce/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/ternaryAndCoalesce/000.php
<?php // ternary $a ? $b : $c; $a ?: $c; // precedence $a ? $b : $c ? $d : $e; $a ? $b : ($c ? $d : $e); // null coalesce $a ?? $b; $a ?? $b ?? $c; $a ?? $b ? $c : $d; $a && $b ?? $c;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/keywordsInNamespacedName/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/keywordsInNamespacedName/000.php
<?php namespace fn; namespace fn\use; namespace self; namespace parent; namespace static; fn\use(); \fn\use(); namespace\fn\use(); private\protected\public\static\abstract\final();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/newDeref/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/newDeref/000.php
<?php new A()->foo; new A()->foo(); new A()::FOO; new A()::foo(); new A()::$foo; new A()[0]; new A()(); new class {}->foo; new class {}->foo(); new class {}::FOO; new class {}::foo(); new class {}::$foo; new class {}[0]; new class {}();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/trailingCommas/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/trailingCommas/000.php
<?php foo( $a, $b, ); $foo->bar( $a, $b, ); Foo::bar( $a, $b, ); new Foo( $a, $b, ); unset( $a, $b, ); isset( $a, $b, );
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/shellExec/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/shellExec/000.php
<?php ``; `test`; `test $A`; `test \``; `test \"`;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/exprInList/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/exprInList/000.php
<?php // This is legal. list(($a), ((($b)))) = $x; // This is illegal, but not a syntax error. list(1 + 1) = $x;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/variable/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/variable/000.php
<?php $a; ${'a'}; ${foo()}; $$a; $$$a; $$a['b'];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/firstClassCallables/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/firstClassCallables/000.php
<?php foo(...); $this->foo(...); A::foo(...); // These are invalid, but accepted on the parser level. new Foo(...); $this?->foo(...); #[Foo(...)] function foo() {}
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/closure/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/closure/000.php
<?php function ($a) { $a; }; function ($a) use ($b) {}; function () use ($a, &$b) {}; function &($a) {}; static function () {}; function ($a): array {}; function () use ($a): \Foo\Bar {};
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/dynamicClassConst/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/dynamicClassConst/000.php
<?php Foo::{bar()}; $foo::{bar()};
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/clone/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/clone/000.php
<?php clone $a;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/misc/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/misc/000.php
<?php 'string'->length(); "foo$bar"[0]; "foo$bar"->length(); (clone $obj)->b[0](1); [0, 1][0] = 1;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/new/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/new/000.php
<?php new $className; new $array['className']; new $obj->className; new Test::$className; new $test::$className; new $weird[0]->foo::$className;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/staticProperty/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/staticProperty/000.php
<?php A::$b; $A::$b; 'A'::$b; ('A' . '')::$b; 'A'[0]::$b; A::$$b; A::$$c[1]; A::$A::$b;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/indirectCall/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/indirectCall/000.php
<?php id('var_dump')(1); id('id')('var_dump')(2); id()()('var_dump')(4); id(['udef', 'id'])[1]()('var_dump')(5); (function ($x) { return $x; })('id')('var_dump')(8); ($f = function ($x = null) use (&$f) { return $x ?: $f; })()()()('var_dump')(9); [$obj, 'id']()('id')($id)('var_dump')(10); 'id'()('id')('var_dum...
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/constDeref/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/constDeref/000.php
<?php A->length; A->length(); A[0]; A[0][1][2]; A::B[0]; A::B[0][1][2]; A::B->length; A::B->length(); A::B::C; A::B::$c; A::B::c(); __FUNCTION__[0]; __FUNCTION__->length; __FUNCIONT__->length();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/isset/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/isset/000.php
<?php isset(([0, 1] + [])[0]); isset(['a' => 'b']->a); isset('str'->a);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/newInstanceofExpr/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/uvs/newInstanceofExpr/000.php
<?php new ('Foo' . $bar); new ('Foo' . $bar)($arg); $obj instanceof ('Foo' . $bar);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/listReferences/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/listReferences/000.php
<?php list(&$v) = $x; list('k' => &$v) = $x; [&$v] = $x; ['k' => &$v] = $x;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/simpleArrayAccess/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/simpleArrayAccess/000.php
<?php $a['b']; $a['b']['c']; $a[] = $b; ${$a}['b'];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/objectAccess/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/objectAccess/000.php
<?php // property fetch variations $a->b; $a->b['c']; // method call variations $a->b(); $a->{'b'}(); $a->$b(); $a->$b['c'](); // array dereferencing $a->b()['c'];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/constFetch/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/constFetch/000.php
<?php A; A::B; A::class; $a::B; $a::class;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/staticPropertyFetch/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/staticPropertyFetch/000.php
<?php // property name variations A::$b; A::$$b; A::${'b'}; // array access A::$b['c']; // class name variations can be found in staticCall.test
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/newDeref/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/newDeref/000.php
<?php (new A)->b; (new A)->b(); (new A)['b']; (new A)['b']['c'];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/staticCall/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/staticCall/000.php
<?php // method name variations A::b(); A::{'b'}(); A::$b(); A::$b['c'](); A::$b['c']['d'](); // array dereferencing A::b()['c']; // class name variations static::b(); $a::b(); ${'a'}::b(); $a['b']::c();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/funcCall/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/funcCall/000.php
<?php // function name variations a(); $a(); ${'a'}(); $$a(); $$$a(); $a['b'](); $a->b['c'](); // array dereferencing a()['b'];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/namedArgs/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/namedArgs/000.php
<?php foo(a: $b, c: $d); bar(class: 0);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/constantDeref/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/fetchAndCall/constantDeref/000.php
<?php 'abc'[2]; 'abc'[2][0][0]; [1, 2, 3][2]; [1, 2, 3][2][0][0]; array(1, 2, 3)[2]; array(1, 2, 3)[2][0][0]; FOO[0]; Foo::BAR[1]; $foo::BAR[2][1][0];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/listWithKeys/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/listWithKeys/000.php
<?php list('a' => $b) = ['a' => 'b']; list('a' => list($b => $c), 'd' => $e) = $x;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/assign/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/assign/000.php
<?php // simple assign $a = $b; // combined assign $a &= $b; $a |= $b; $a ^= $b; $a .= $b; $a /= $b; $a -= $b; $a %= $b; $a *= $b; $a += $b; $a <<= $b; $a >>= $b; $a **= $b; $a ??= $b; // chained assign $a = $b *= $c **= $d; // by ref assign $a = &$b; // list() assign list($a) = $b; list($a...
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/pipe/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/pipe/000.php
<?php $a|> $b|> $c; $a . $b|> $c . $d; $a|> $b == $c; $c == $a|> $b; $a|>(fn($x) => $x)|>(fn($y) => $y); $a|> fn($x) => $x|> fn($y) => $y;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/logic/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/logic/000.php
<?php // boolean ops $a && $b; $a || $b; !$a; !!$a; // logical ops $a and $b; $a or $b; $a xor $b; // precedence $a && $b || $c && $d; $a && ($b || $c) && $d; $a = $b || $c; $a = $b or $c;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrayDef/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrayDef/000.php
<?php array(); array('a'); array( 'a', ); array('a', 'b'); array('a', &$b, 'c' => 'd', 'e' => &$f); // short array syntax []; [1, 2, 3]; ['a' => 'b'];
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrayDestructuring/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/expr/arrayDestructuring/000.php
<?php [$a, $b] = [$c, $d]; [ , $a,,, $b,, ] = $foo; [, [[$a,, $x]], $b] = $bar; ['a' => $b, 'b' => $a] = $baz;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/formattingAttributes/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/formattingAttributes/000.php
<?php 0b1100; 014; 12; 0xC; 123_456; 3.141_592_653; 'foo'; 'bar'; 'foo bar'; "foo\nbar"; "foo\nbar{$x}"; `foo\nbar`; `foo\nbar{$x}`; <<<'ABC' ABC; <<<'ABC' foo bar ABC; <<<'ABC' foo bar ABC; <<<ABC foo\nbar ABC; <<<ABC foo\nbar ABC; <<<ABC foo\nbar{$x}baz ABC; <<<ABC foo\nbar{$x}baz ABC; array(); []; list($x) = $y;...
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/comments/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/comments/001.php
<?php /** * doc */ /* foobar */ // foo // bar ?>
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/comments/002.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/comments/002.php
<?php // comment if (42) { }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/comments/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/comments/000.php
<?php /** doc 1 */ /* foobar 1 */ // foo 1 // bar 1 $var; if ($cond) { /** * doc 2 */ /* foobar 2 */ // foo 2 // bar 2 } /** * doc 3 */ /* foobar 3 */ // foo 3 // bar 3
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/blockComments/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/blockComments/000.php
<?php // foo { // bar { // baz $a; } } // empty { }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/nopPositions/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/nopPositions/001.php
<?php { /* comment */ }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/nopPositions/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/nopPositions/000.php
<?php /* Comment */
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/semiReserved/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/semiReserved/000.php
<?php class Test { function array() {} function public() {} static function list() {} static function protected() {} public $class; public $private; const TRAIT = 3, FINAL = 4; const __CLASS__ = 1, __TRAIT__ = 2, __FUNCTION__ = 3, __METHOD__ =...
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/emptyFile/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/emptyFile/000.php
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/commentAtEndOfClass/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/commentAtEndOfClass/000.php
<?php class MyClass { protected $a; // my comment }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompiler/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompiler/001.php
<?php $a; __halt_compiler();Hallo World!
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompiler/002.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompiler/002.php
<?php namespace A; $a; __halt_compiler();
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompiler/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompiler/000.php
<?php $a; __halt_compiler() ?> Hallo World!
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/while/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/while/000.php
<?php while ($a) { } while ($a): endwhile;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/for/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/for/000.php
<?php // "classical" loop for ($i = 0; $i < $c; ++$i) { } // multiple expressions for ($a, $b; $c, $d; $e, $f) { } // infinite loop for (;;) { } // alternative syntax for (;;): endfor;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/foreach/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/foreach/000.php
<?php // foreach on variable foreach ($a as $b) { } foreach ($a as &$b) { } foreach ($a as $b => $c) { } foreach ($a as $b => &$c) { } foreach ($a as list($a, $b)) { } foreach ($a as $a => list($b,, $c)) { } // foreach on expression foreach (array() as $b) { } // alternative syntax foreach ($a as $b): endforeach;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/do/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/loop/do/000.php
<?php do { } while ($a);
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompilerOffset/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/haltCompilerOffset/000.php
<?php var_dump(__HALT_COMPILER_OFFSET__); __halt_compiler(); Foo
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/tryCatch/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/tryCatch/000.php
<?php try { doTry(); } catch (A $b) { doCatchA(); } catch (B $c) { doCatchB(); } finally { doFinally(); } // no finally try { } catch (A $b) { } // no catch try { } finally { }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/if/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/if/000.php
<?php if ($a) { } elseif ($b) { } elseif ($c) { } else { } if ($a) { } // without else if ($a): elseif ($b): elseif ($c): else: endif; if ($a): endif; // without else
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/hashbang/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/hashbang/000.php
#!/usr/bin/env php <?php echo 'foobar'; ?> #!/usr/bin/env php
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmt/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmt/001.php
<?php ; /* Comment */ namespace Foo;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmt/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmt/000.php
<?php declare(A='B'); namespace B { } __halt_compiler() ?> Hi!
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/groupUsePositions/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/groupUsePositions/000.php
<?php use Foo\Bar\{Baz};
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/groupUseTrailingComma/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/groupUseTrailingComma/000.php
<?php use A\{ B, }; use function A\{ b, };
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/invalidName/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/invalidName/001.php
<?php use B as PARENT;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/invalidName/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/invalidName/000.php
<?php use A as self;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/groupUse/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/groupUse/000.php
<?php use A\B\{C\D, function b\c, const D}; use A\{B\C, D}; use A\{B}; use \A\B\{C\D, E}; use function A\{b\c, d}; use const \A\{B\C, D};
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/nested/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/nested/000.php
<?php namespace A { namespace B { } }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/braced/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/braced/000.php
<?php namespace Foo\Bar { foo; } namespace { bar; }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/notBraced/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/notBraced/000.php
<?php namespace Foo\Bar; foo; namespace Bar; bar;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/alias/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/alias/000.php
<?php use A\B; use C\D as E; use F\G as H, J; // evil alias notation - Do Not Use! use \A; use \A as B; // function and constant aliases use function foo\bar; use function foo\bar as baz; use const foo\BAR; use const foo\BAR as BAZ;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/commentAfterNamespace/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/commentAfterNamespace/000.php
<?php namespace Foo { } // Comment
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/mix/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/mix/001.php
<?php namespace A { echo 1; } echo 2; namespace B; echo 3;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/mix/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/mix/000.php
<?php namespace A; echo 1; namespace B { echo 2; } echo 3;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/nsAfterHashbang/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/nsAfterHashbang/000.php
#!/usr/bin/env php <?php namespace A;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/name/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/name/000.php
<?php A; A\B; \A\B; namespace\A\B;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/001.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/001.php
<?php namespace A { } echo 1;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/002.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/002.php
<?php namespace A { } declare(ticks=1); foo(); namespace B { }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/000.php
<?php echo 1; echo 2; namespace A;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/switch/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/switch/000.php
<?php switch ($a) { case 0: break; // Comment case 1; default: } // alternative syntax switch ($a): endswitch; // leading semicolon switch ($a) { ; } switch ($a): ; endswitch;
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/generator/basic/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/generator/basic/000.php
<?php function gen() { // statements yield; yield $value; yield $key => $value; // expressions $data = yield; $data = (yield $value); $data = (yield $key => $value); // yield in language constructs with their own parentheses if (yield $foo); elseif (yield $foo); if (yi...
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false
lkrms/pretty-php
https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/generator/yieldUnaryPrecedence/000.php
tests/fixtures/Formatter/out/02-aligned/3rdparty/php-parser/parser/stmt/generator/yieldUnaryPrecedence/000.php
<?php function gen() { yield +1; yield -1; yield * -1; }
php
MIT
5d244a4b7a9b484581edbb5df596a4e76ba17fa6
2026-01-05T04:31:39.990954Z
false