3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function testMe() { $sut = new class(self::foo('foo')) {}; } private static function foo($foo) { var_dump($foo); } }
based on 8Hl4s
Output for hhvm-3.15.4, 7.0.0 - 7.3.0beta1
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/haUjN on line 7
Process exited with code 255.