3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Walker { function walk( $elements, $max_depth, ...$args ) { echo 1; } } class My_Walker extends Walker { function walk( $elements, $max_depth ) { echo 2; } } $a = new My_Walker(); $a->walk( 1, 2 );
Output for 7.4.0
Warning: Declaration of My_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /in/2iS9g on line 10 2
Output for 7.1.25 - 7.3.7
Warning: Declaration of My_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /in/2iS9g on line 13 2