3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class segitiga { protected $alas; protected $tinggi; public function set_alas($a) { $this->alas=$als; $als=10; echo $als; } public function set_tinggi($t) { $this->tinggi=$tng; $tng=24; } } class anaknya extends segitiga { protected $miring; protected function pythagoras() { } } class cucunya extends anaknya { public $pesan; private function keliling() { } } $sgt= new segitiga(); $sgt2= new anaknya(); $sgt3= new cucunya();
based on auC8i
Output for 5.6.38 - 7.3.0rc3