3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { const NAME = 'A'; public static function test() { $args = func_get_args( ); echo static::NAME, " ".join(',', $args)." \n"; } } class B extends A { const NAME = 'B'; public static function test() { echo self::NAME, "\n"; forward_static_call(array('A', 'test')'more', 'args'); forward_static_call( 'test', 'other', 'args'); } } B::test(); function test() { $args = func_get_args(); echo "C ".join(',', $args)." \n"; } ?>
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected ''more'' (T_CONSTANT_ENCAPSED_STRING) in /in/00RuN on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/00RuN on line 18
Process exited with code 255.