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.21, 8.3.0 - 8.3.9
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:
74.8 ms | 403 KiB | 67 Q