3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class person { abstract protected function write_info(); public $LastName; public $FirstName; public $BirthDate; public function get_Age($today=NULL){ } } final class employee extends person{ public $EmployeeNumber; public $DateHired; public function write_info(){ echo "Writing ". $this->LastName . "'s info to emloyee dbase table"; } } final class student extends person{ public $StudentNumber; public $CourseName; public function write_info(){ echo "Writing ". $this->LastName . "'s info to student dbase table"; } } $personA = new employee; $personB = new student; $personA->FirstName="Joe"; $personA->LastName="body"; $personB->FirstName="Ben"; $personB->LastName="Dover"; $personA->write_info(); ?> OUTPUT:Writing Sbody's info to emloyee dbase table
Output for git.master_jit, git.master, rfc.property-hooks
Writing body's info to emloyee dbase table OUTPUT:Writing Sbody's info to emloyee dbase table

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:
45.72 ms | 401 KiB | 8 Q