3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
I am a studentHasan does not existWe set age->15There is no <b>notExistmethod</b> method and arguments:2, 8, 5