3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class C { function save($a, $b, $c=NULL) { echo "save something"; return 1; // id } } class D extends C { function saveD($a, $b){ return parent::save($a,$b); } } class X extends D { function save($a, $b, $c = NULL){ // do little processing with $c return $this->saveD($a,$b); } } $x = new X(); $x->save(1,2,"aaaa");
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
save something