3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test( $foo, #[\SensitiveParameter] $bar, $baz ) { throw new \Exception('Error'); } test('foo', 'bar', 'baz');
Output for 8.2rc1 - rc3
Fatal error: Uncaught Exception: Error in /in/KeEiJ:7 Stack trace: #0 /in/KeEiJ(10): test('foo', Object(SensitiveParameterValue), 'baz') #1 {main} thrown in /in/KeEiJ on line 7
Process exited with code 255.
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.26, 8.1.0 - 8.1.13
Fatal error: Uncaught Exception: Error in /in/KeEiJ:7 Stack trace: #0 /in/KeEiJ(10): test('foo', 'bar', 'baz') #1 {main} thrown in /in/KeEiJ on line 7
Process exited with code 255.

preferences:
37.15 ms | 411 KiB | 5 Q