3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Asd { public $x; function __construct($x) { $this->x = $x; } } function test(object $test) { var_export($test); } $a = new Asd(123); test($a);

preferences:
35.13 ms | 402 KiB | 5 Q