3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); phpversion() >= "7.0.0" or die(); class FooBar { public $prop = '123'; } class BarFoo { public $prop = '312'; } function test () : FooBar { return new FooBar; } function test1 () : BarFoo { return ; } var_dump(test1()); var_dump(test());

This is an error 404

There are `0` results


preferences:
140.09 ms | 1399 KiB | 7 Q