3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Record extends \Phalcon\Mvc\Model { public $id; public $name_short; public $name_full; public function initialize() { $this->hasManyToMany('id','RecordTag','record_id','tag_id','Tag','id'); } } class Tag extends \Phalcon\Mvc\Model { public $id; public $description; public $short; public function initialize() { $this->hasManyToMany('id','RecordTag','tag_id','record_id','Record','id'); } } class RecordTag extends \Phalcon\Mvc\Model { public $id; public $record_id; public $tag_id; public function initialize() { $this->belongsTo("record_id", "Record", "id"); $this->belongsTo("tag_id", "Tag", "id"); } } $app = new Phalcon\Mvc\Micro(); //Retrieves all robots $app->get('/f', function() use($app) { $test = $app->modelsManager->createBuilder(); $test2 = $test->addFrom("Record", 'r') ->leftJoin("RecordTag",null,'rt') ->leftJoin("Tag", null, 't'); echo $test2->getPhql(); $test2->getQuery()->execute(); }); $app->handle();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Phalcon\Mvc\Model" not found in /in/7vuZI:3 Stack trace: #0 {main} thrown in /in/7vuZI on line 3
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:
39.72 ms | 401 KiB | 8 Q