Simulate interaction for pecl