mattschesmattsches@phpc.social
Dec 5, 2025, 9:07 AMI just completed "Cafeteria" - Day 5 - Advent of Code 2025 #AdventOfCode https://adventofcode.com/2025/day/5
Still exploring the use cases for the pipe operator in PHP 8.5. My feeling is that is not as useful as it could be when dealing with arrays. The solution of day 5.2 had eluded me for some time, the key was to `usort()` the ranges. First attempt was much simpler but hit the max size limitation of PHP arrays 😬
Code in PHP 8.5 here -> https://codeberg.org/mattsches/aoc2025