3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SensitiveValue { public function __construct(public $value) {} public function __debugInfo(): array { return []; } } function foo($value) { bar($value); } function bar($value) { var_dump($value); throw new Exception(); } foo(new SensitiveValue('my_password'));
Output for git.master_jit, git.master
object(SensitiveValue)#1 (0) { } Fatal error: Uncaught Exception in /in/1ujDU:16 Stack trace: #0 /in/1ujDU(11): bar(Object(SensitiveValue)) #1 /in/1ujDU(19): foo(Object(SensitiveValue)) #2 {main} thrown in /in/1ujDU on line 16
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.93 ms | 405 KiB | 5 Q