3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a{ public function __construct(){ echo 'sub_class'; } } class b{ public function __construct(){ self = new a(); } } $v = new b(); echo get_class($v);
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '=' in /in/9MdN4 on line 9
Process exited with code 255.