3v4l.org

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

preferences:
34.04 ms | 402 KiB | 5 Q