3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $test; public function __construct($test) { $this->test = $test; } } $test = new A(123); $test2 = new A(456); var_dump($test, $test2);

preferences:
42.56 ms | 402 KiB | 5 Q