3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Test; class Test { public function __construct(string $s, int $i) {} } $a = new Test('', 0);
based on OZudv
Output for 7.0.0 - 7.2.0
Output for 5.3.19 - 5.6.21
Catchable fatal error: Argument 1 passed to Test\Test::__construct() must be an instance of Test\string, string given, called in /in/FTPFR on line 9 and defined in /in/FTPFR on line 6
Process exited with code 255.