3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { protected function bar(Int $id){ return $id; } } class Fbar extends Foo { public function bar(String $string) { $int = (Int) $string; $tt = $this->bar($int); } } class FooBar { public function test() { $bar = new Fbar(); $test = $bar->bar('1'); var_dump($test); } } $FooBar = new FooBar; $FooBar->test();

This is an error 404

There are `0` results


preferences:
158 ms | 1399 KiB | 7 Q