3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fish { public $common_name; public $flavor; public $record_weight; function __construct($name, $flavor, $record){ $this->common_name = $name; $this->flavor = $flavor; $this->record_weight= $record; } public function getInfo(){ return "A Largemouth Bass is an Excellent flavored fish. The world record weight is 22 pounds 5 ounces." . $this->common_name . $this->flavor . $this->record_weight; } } $bass = new Fish("Largemouth Bass","Excellent","22 pounds 5 ounces"); echo $bass->getInfo();
Output for git.master, git.master_jit, rfc.property-hooks
A Largemouth Bass is an Excellent flavored fish. The world record weight is 22 pounds 5 ounces.Largemouth BassExcellent22 pounds 5 ounces

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