<?php final class AnonymousClassImporter { static public function __set_state($data){ return new class($data){ public function __construct($data){ foreach($data as $key => $value){ $this->{$key} = $value; } } }; } } spl_autoload_register(function($name){ if(str_starts_with($name, "class@anonymous\0")){ class_alias('AnonymousClassImporter', $name); } }, prepend: true); $imported = ('class@anonymous' . "\0" . '/in/RXBTu:3$0')::__set_state(array( 'x' => 12, )); var_dump($imported);
You have javascript disabled. You will not be able to edit any code.