3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function a(){ $this->isEmpty = 1; var_dump(property_exists($this, 'isEmpty')); unset($this->isEmpty); var_dump(property_exists($this, 'isEmpty')); } } $t = new test(); $t->a(); class test2 { public $isEmpty; public function a(){ $this->isEmpty = 1; var_dump(property_exists($this, 'isEmpty')); unset($this->isEmpty); var_dump(property_exists($this, 'isEmpty')); } } $t = new test2(); $t->a(); class test3 { public $isEmpty; public function a(){ $this->isEmpty = 1; var_dump(isset($this->isEmpty)); unset($this->isEmpty); var_dump(isset($this->isEmpty)); } } $t = new test3(); $t->a();
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property test::$isEmpty is deprecated in /in/kBBBd on line 6 bool(true) bool(false) bool(true) bool(true) bool(true) bool(false)

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:
40.87 ms | 405 KiB | 5 Q