3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function test() { echo 78906; } } Test:test();
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function test() in /in/IEhpJ:11 Stack trace: #0 {main} thrown in /in/IEhpJ on line 11
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Test has a deprecated constructor in /in/IEhpJ on line 3 Fatal error: Uncaught Error: Call to undefined function test() in /in/IEhpJ:11 Stack trace: #0 {main} thrown in /in/IEhpJ on line 11
Process exited with code 255.

preferences:
113.98 ms | 401 KiB | 121 Q