3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Zend_Application_Resource_View { protected $_view; protected $_class = 'Zend_View'; public function __construct($options = null) { if (isset($options['class'])) { $this->_class = $options['class']; unset($options['class']); } $viewClass = $this->_class; $this->_view = new $viewClass($options); } public function setHeadTitle($options) { } public function getView() { return $this->_view; } } class Test_View { public function __construct($x) { var_dump($x); } } new Zend_Application_Resource_View(array(1,2,3));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Zend_View" not found in /in/Yd7PO:15 Stack trace: #0 /in/Yd7PO(32): Zend_Application_Resource_View->__construct(Array) #1 {main} thrown in /in/Yd7PO on line 15
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:
46.81 ms | 401 KiB | 8 Q