<?php namespace Foo { function test1($input) { return strlen($input); } function test2($input) { return strlen($input); } var_dump(test1("test")); // int(4) // Simulate require eval('namespace Foo { function strlen($input) { return 42; }}'); var_dump(test2("test")); // int(42) var_dump(test1("test")); // int(4) }
You have javascript disabled. You will not be able to edit any code.