3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $client = new stdClass(); $client->Get = function($path) use($client) { echo $client->GetAccessToken(); } $client->GetAccessToken = function() use($client) { return 'bar'; } $client->Get();
Output for 5.4.10 - 7.0.0
Parse error: syntax error, unexpected '$client' (T_VARIABLE) in /in/Y7vgB on line 7
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_VARIABLE in /in/Y7vgB on line 7
Process exited with code 255.