3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function doSomethingWithA() { /**/ } public function doSomethingWithB() { /**/ } } $c = new C("foo", null); assert($c->a === "foo");

preferences:
39.56 ms | 402 KiB | 5 Q