3v4l.org

run code in 300+ PHP versions simultaneously
<?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.23, 5.4.13
Parse error: syntax error, unexpected '{' in /in/Gf71h on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '{' in Bhe4t on line 9
Process exited with code 255.

preferences:
175.98 ms | 1387 KiB | 45 Q