3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/f3W1W on line 15
Process exited with code 255.

preferences:
182.33 ms | 1395 KiB | 60 Q