3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar {} class Transaction { public $f; public $b; public $intValue; function __construct(Foo $f, Bar $b, $intValue) { $this->f = $f; $this->b = $b; $this->intValue = $intValue; } } function test() { $foo = new Foo(); $bar = new Bar(); return new Transaction($foo, $bar, 42); } var_dump(test());
Output for rfc.property-hooks, git.master, git.master_jit
object(Transaction)#3 (3) { ["f"]=> object(Foo)#1 (0) { } ["b"]=> object(Bar)#2 (0) { } ["intValue"]=> int(42) }

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:
69.67 ms | 2241 KiB | 4 Q