3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk { protected $alas=10; protected $miring=8; public function setAlas() { return ($this->alas/2); } public function setMiring() { return ($this->miring/2); } } $CP2 = new induk(); echo CP2->setAlas(); echo PHP_EOL; echo CP2->setMiring(); echo PHP_EOL ?>
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "CP2" in /in/5PZCp:19 Stack trace: #0 {main} thrown in /in/5PZCp on line 19
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:
35.06 ms | 401 KiB | 8 Q