$ php --version PHP 5.5.4 (cli) (built: Sep 19 2013 17:10:06) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies >
In PHP 5.3 if you are using a Closure inside of a class, the Closure will not have access to $this.
PHP 5.3
Closure
$this
In PHP 5.4, support has been added for the usage of $this in Closures.
PHP 5.4
Closures