>>110126798
It would be so fucking hilarious if 4chan was still using PHP5.
Why are the archives using PHP7.4 instead of 8 though? Last time I checked most shit that worked on 7.4 worked just fine on 8 and 8.1 with a bunch of warnings (some really weird old php4 era loop functions got deprecated). The one thing that broke a lot in 8.2 was dynamic properties in objects but there's a workaround for that:
private array $dynamic_props = [];
public function &__get($name) { return $this->dynamic_props[$name]; }
public function __isset($name) { return isset($this->dynamic_props[$name]); }
public function __set($name, $value) { $this->dynamic_props[$name] = $value; }
public function __unset($name) { unset($this->dynamic_props[$name]); }
public function get_data_keys() {return array_keys($this->dynamic_props);}