3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $module = 'Module'; echo $module::work('hello world'), "\n"; abstract class Module { public static function work($it) { $module = 'self'; return {"$module::strtoupper"}($it); return $module::strtoupper($it); } private static function strtoupper($it) { return strtoupper($it); } }
Output for 5.3.0 - 5.4.13
Parse error: syntax error, unexpected '{' in /in/Gf71h on line 9
Process exited with code 255.