3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Station { public $platform = null; public function start() { $this->platform = new Platform(); $this->platform->ConfigurePlatform('test'); } public function getOrders() { return $this->platform->GetOrdersFromPlatform(); } } class Platform { private $orders = null; public function ConfigurePlatform($string) { $this->orders = $string; return $this; } public function GetOrdersFromPlatform() { return $this->orders; } } $test = new Station(); $test->start(); echo $test->platform->GetOrdersFromPlatform(); //or echo $test->getOrders();
Output for git.master, git.master_jit, rfc.property-hooks
testtest

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:
53.65 ms | 1416 KiB | 4 Q