Advent of code 2020/1
Ajax Direct

Answer 130ms

Part 1 : 876459 Part 2 : 116168640
$lines = $input->lines->sort()->ints();

// ==================================================
// > PART 1
// ==================================================
for ($x = 0; $x < $lines->count(); $x++) {
    for ($y = $x; $y < $lines->count(); $y++) {
        if ($lines[$x] + $lines[$y] == 2020) {
            break 2;
        }
    }
}

$solution_1 = $lines[$x] * $lines[$y];

// ==================================================
// > PART 2
// ==================================================
for ($x = 0; $x < $lines->count(); $x++) {
    for ($y = $x; $y < $lines->count(); $y++) {
        for ($z = $y; $z < $lines->count(); $z++) {
            if ($lines[$x] + $lines[$y] + $lines[$z] == 2020) {
                break 3;
            }
        }
    }
}

$solution_2 = $lines[$x] * $lines[$y] * $lines[$z];