3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function t($str) { echo "\nHi: $str"; var_dump(debug_backtrace()); } } (new a)->t('bla');
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Hi: blaarray(1) { [0]=> array(7) { ["file"]=> string(9) "/in/5KRA9" ["line"]=> int(12) ["function"]=> string(1) "t" ["class"]=> string(1) "a" ["object"]=> object(a)#1 (0) { } ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(3) "bla" } } }

preferences:
64.35 ms | 403 KiB | 65 Q