3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class dupa { public $a = 'j'; public function _construct() { echo '+_construct'.$this->$a; } public function dupa(){} public function dupa($param) { $this->a = $param; } }; $a = new dupa('blabla'); echo $a->a; $b = new dupa; echo $b->a;?>
Output for 5.3.0 - 5.4.27
Fatal error: Cannot redeclare dupa::dupa() in /in/fo8MB on line 9
Process exited with code 255.