3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function t($str) { echo "\nHi: $str"; var_dump(debug_backtrace()); } } (new a)->test('bla');
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Fatal error: Uncaught Error: Call to undefined method a::test() in /in/YTBIb:12 Stack trace: #0 {main} thrown in /in/YTBIb on line 12
Process exited with code 255.

preferences:
85.18 ms | 402 KiB | 65 Q