3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function (string $class): void { var_dump($class); }); use App\Foo; use App\Bar as ABar; //new Foo(); //new ABar();
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9

preferences:
81.72 ms | 402 KiB | 67 Q