3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Logger { private $date = 'c'; } $logFormat = function() { return date($this->date); }; echo $logFormat->call((new Logger));
based on DA9o5
Output for 7.0.0 - 7.2.0
2015-10-07T11:28:46+02:00
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined method Closure::call() in /in/6sfFd on line 9
Process exited with code 255.