3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IRouteBuilder { public function __construct($culture, $brand, $country); public function getRoute(sfWebRequest $request); } abstract class AbstractRouteBuilder implements IRouteBuilder { protected $culture; protected $brand; protected $country; public function __construct($culture, $brand, $country) { $this->culture = $culture; $this->brand = $brand; $this->country = $country; echo 'toto'; } abstract public function getRoute(sfWebRequest $request); protected function assertMandatoryParameters(array $parameters, sfWebRequest $request) { foreach ($parameters as $parameter) { if (is_null($request->getGetParameter($parameter))) { throw new Exception(sprintf('Missing parameter "%s"', $parameter)); } } } protected function generateUrl($route, $params) { return sfContext::getInstance()->getRouting()->generate($route, $params, true); } }
Output for git.master, git.master_jit, rfc.property-hooks

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