Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <?php class MyClass { public function hello() { echo "Hello World!"; } } class AnotherClass extends MyClass { } $obj = new AnotherClass(); $obj->hello(); ?> </body> </html>
Hello World!