3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public static function create ($a, $b) { print 'A: ' . $a . ' ' . $b . "\n"} } class B { public static function create ($a) { print 'B: ' . $a . "\n"} }
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '}' in /in/GSW37 on line 4
Process exited with code 255.