3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $Вік; var $Датанародження; var $Стать; function Vvid( $a,$b,$c ) { $this-> Вік = $a; $this-> Дата_народження = $b; $this-> Стать = $c; } } class B extends A { function Vuvid() { echo "<H1 align=center>$this->Вік</H1>"; echo "<H1 align=center>$this->Дата_народження</H1>"; echo "<H1 align=center>$this->Стать</H1>"; A::Vvid( 18,"04.05.1997","Чол." ); } } A::Vvid( 18,"04.05.1997","Чол." ); $b = new B; $b->Vuvid(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Non-static method A::Vvid() cannot be called statically in /in/Xu55r:25 Stack trace: #0 {main} thrown in /in/Xu55r on line 25
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.18 ms | 401 KiB | 8 Q