3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { const DEFAULT_VERSION = "1.2.3"; public function pingAction($version = self::DEFAULT_VERSION) { var_dump($version); } } $x = new Foo(); $x.pingAction("0.0.0"); $x.pingAction();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function pingAction() in /in/socHY:14 Stack trace: #0 {main} thrown in /in/socHY on line 14
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function pingAction() in /in/socHY on line 14
Process exited with code 255.