3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { #[Deprecated] public function doFoo(): void { } } $foo = new Foo(); $foo->doFoo();
Output for 8.4.1 - 8.4.2
Deprecated: Method Foo::doFoo() is deprecated in /in/MEJTq on line 15
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.15

preferences:
38.48 ms | 407 KiB | 5 Q