3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a{ function add($in) { } function add($in, $out) { } } $n = new a(); $n->add(12);
Output for 5.0.0 - 5.4.31
Fatal error: Cannot redeclare a::add() in /in/YpJ0R on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot redeclare add() in /in/YpJ0R on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot redeclare add() in /in/YpJ0R on line 7