3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Document; use RepositoryAbstract; use Database; use ORM\DocumentCategory as Model; use ProxyHelper; class TagRepository extends RepositoryAbstract { use ProxyHelper; public function __construct(Database $db, Model $model) { $this->model = $model; parent::__construct($db); } public function newInstance(array $data = array()) { $tag = new Tag; $tag = $this->automap($data, $tag); $client = $this->repositoryProxy($data, 'client', 'Client\ClientRepository', 'clients_id'); $tag->setClient($client); return $tag; } public function read($id) { $tag = $this->model ->with('client') ->find($id); return $this->newInstance($tag->toArray()); } public function readAll($where = false) { $query = $this->model ->with('client') ->orderBy('name'); if ($where) { $query->whereRaw($where); } $tags = $query->get(); return $this->newCollection($tags); } }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "RepositoryAbstract" not found in /in/GdK5a:7 Stack trace: #0 {main} thrown in /in/GdK5a on line 7
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:
54.65 ms | 401 KiB | 8 Q