3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Obj { public $a; protected $b; private $c; function __construct($a, $b, $c) { $this->a = $a; $this->b = $b; $this->c = $c; } } $o = new Obj(1, 2, 3); var_dump($o);

preferences:
26.17 ms | 402 KiB | 5 Q