3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Student{ public $name; public function describe(){ echo "I am a student"; } public function __get($pm){ echo "$pm does not exist"; } public function __set($pm, $value){ echo "We set $pm->$value"; } public function __call($pm, $value){ echo 'There is no <b>'.$pm.'</b> method and arguments:'.implode(', ', $value); } } $st = new student(); $st->describe(); $st->Hasan; $st->age = 15; $st->notExistmethod('2','8','5'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
I am a studentHasan does not existWe set age->15There is no <b>notExistmethod</b> method and arguments:2, 8, 5

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:
89 ms | 401 KiB | 8 Q