3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function doStuff($var = false) { if($var) { return 'no'; } return $this->something(); } public static function something() { return 'yes'; } } var_dump(A::doStuff(true)); var_dump(A::doStuff(false));

preferences:
44.46 ms | 402 KiB | 5 Q