3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct(int $one, int $two = 666) {} } class B extends A { public function __construct(string $whatever) { parent::__construct(1); } } new B('foo'); new A(2);
Output for 8.1.33, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3

preferences:
55.8 ms | 707 KiB | 4 Q