3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class hell { protected $ruler = 'devil'; function cry(){ echo $this->ruler; } } $inst = new hell(); $inst->cry(); Closure::bind(function () {echo 1}, $inst, get_class($inst));
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/f3W1W on line 15
Process exited with code 255.