3v4l.org

run code in 300+ PHP versions simultaneously
<?php $👽 = true; class 🤓 { private $state = null; public function __construct($state) { $this->setState($state); echo 'Wat heb ik gedaan... ' . $this->getState(); } private function setState($state) { $this->state = $state; } private function getState($state) { return $this->state; } } if ($👽) { new 🤓('🤔'); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function 🤓::getState(), 0 passed in /in/6t1Te on line 13 and exactly 1 expected in /in/6t1Te:21 Stack trace: #0 /in/6t1Te(13): 🤓->getState() #1 /in/6t1Te(28): 🤓->__construct('\xF0\x9F\xA4\x94') #2 {main} thrown in /in/6t1Te on line 21
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.85 ms | 401 KiB | 8 Q